Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Expose real time dispatch changes function #1532

Merged
merged 3 commits into from
Sep 19, 2024

Commits on Sep 18, 2024

  1. feat: Expose real time dispatch changes function

    When in a React environment, we use the RealTimeQueries component to
    subscribe to a doctype changes and keep the internal store updated.
    
    To be able to do the same thing manually for non React environment,
    we expose the underlaying functions : dispatchCreate, dispatchCreate,
    dispatchDelete.
    zatteo committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    fb807e0 View commit details
    Browse the repository at this point in the history
  2. fix: Remove ref to CozyClient as it breaks tests (circular dependency)

    If `CozyClient` is imported into those files, then unit tests fail.
    
    Using `@param {import('../CozyClient').default} client` syntax
    doesn't work either as this syntax is not handled by `jsdoc`.
    
    Jsdoc seems to support this syntax in later versions but then
    node engine should be updated.
    
    So client will be temporarily typed as `object` until a better solution
    is found.
    zatteo committed Sep 18, 2024
    Configuration menu
    Copy the full SHA
    b0bcbef View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    981a4c2 View commit details
    Browse the repository at this point in the history