data-client

Async State Management without the Management

APACHE-2.0 License

Downloads
44.4K
Stars
1.9K
Committers
37

Bot releases are visible (Hide)

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

  • #3129 2503402 Thanks @ntucker! - Allow ctrl.set() value to be a function

    This prevents race conditions.

    const id = '2';
    ctrl.set(Article, { id }, article => ({ id, votes: article.votes + 1 }));
    

    Note: the response must include values sufficient to compute Entity.pk()

  • #3127 c18fbf7 Thanks @ntucker! - Remove RIC export

  • #3127 c18fbf7 Thanks @ntucker! - Add NetworkManager.idleCallback overridable method

    This allows platform specific implementations by overriding the method.
    For instance, on web:

    import { NetworkManager } from '@data-client/core';
    
    export default class WebNetworkManager extends NetworkManager {
      static {
        if (typeof requestIdleCallback === 'function') {
          WebNetworkManager.prototype.idleCallback = requestIdleCallback;
        }
      }
    }
    
data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

  • 720ff0c Thanks @ntucker! - Widen ErrorFallback types

  • 720ff0c Thanks @ntucker! - Update keywords

  • #3123 c38714d Thanks @ntucker! - Fix React Native use correct native specific modules

    Fully realized path names (including .js at end of import)
    was breaking platform specific extensions. To workaround this issue, we
    simply create a custom react-native build that remaps any
    imports with full extension written ("file.native.js")

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Minor Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

  • 2ba27aa Thanks @ntucker! - Fix NextJS DataProvider hydration with no managers prop
data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

  • 96b683b Thanks @ntucker! - Remove need for dispatch in StoreContext as it is never used

    This should have no affect unless you're working with internals of Data Client

  • 4d8a8a5 Thanks @ntucker! - Fix SSR hydration when removing devtools manager

  • #3112 afe0640 Thanks @ntucker! - enhance: Use custom SSRProvider for SSR rather than ExternalDataProvider

  • 327d666 Thanks @ntucker! - Add ctrl.set() to README

  • Updated dependencies [327d666]:

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Minor Changes

  • #3105 cf770de Thanks @ntucker! - Add controller.set()

    ctrl.set(
      Todo,
      { id: '5' },
      { id: '5', title: 'tell me friends how great Data Client is' },
    );
    

    BREAKING CHANGE:

    • actionTypes.SET_TYPE -> actionTypes.SET_RESPONSE_TYPE
    • SetAction -> SetResponseAction

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Minor Changes

  • #3105 cf770de Thanks @ntucker! - Add controller.set()

    ctrl.set(
      Todo,
      { id: '5' },
      { id: '5', title: 'tell me friends how great Data Client is' },
    );
    

    BREAKING CHANGE:

    • actionTypes.SET_TYPE -> actionTypes.SET_RESPONSE_TYPE
    • SetAction -> SetResponseAction
data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

  • 233f400 Thanks @ntucker! - Fix commonjs builds to keep same context instance

    There must be only one instance of a context, so we need to ensure our new entrypoints don't include createContext

data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

  • d3cdbef Thanks @ntucker! - Add commonjs bundle for @data-client/react/ssr