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

  • #3099 428ddd1 Thanks @ntucker! - Add @data-client/react/redux

    import {
      ExternalDataProvider,
      PromiseifyMiddleware,
      applyManager,
      initialState,
      createReducer,
      prepareStore,
    } from '@data-client/react/redux';
    
  • d1b9e96 Thanks @ntucker! - Add /ssr entrypoint - eliminating the need for @data-client/ssr package completely

    import {
      createPersistedStore,
      createServerDataComponent,
    } from '@data-client/react/ssr';
    
  • #3099 428ddd1 Thanks @ntucker! - Add middlewares argument to prepareStore()

    import {
      ExternalDataProvider,
      prepareStore,
      type Middleware,
    } from '@data-client/react/redux';
    import { getDefaultManagers, Controller } from '@data-client/react';
    import ReactDOM from 'react-dom';
    
    const managers = getDefaultManagers();
    // be sure to include your other reducers here
    const otherReducers = {};
    const extraMiddlewares: Middleware = [];
    
    const { store, selector, controller } = prepareStore(
      initialState,
      managers,
      Controller,
      otherReducers,
      extraMiddlewares,
    );
    
    ReactDOM.render(
      <ExternalDataProvider
        store={store}
        selector={selector}
        controller={controller}
      >
        <App />
      </ExternalDataProvider>,
      document.body,
    );
    
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

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

Patch Changes

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

Published by github-actions[bot] 4 months ago

Patch Changes

  • ad23e04 Thanks @ntucker! - React Native components have distinct name from non-native to help debuggability
data-client - @data-client/[email protected]

Published by github-actions[bot] 4 months ago

Patch Changes

  • #3080 559cd8a Thanks @ntucker! - NextJS App Router: Prevent serialization race conditions by stalling client hydration until serialization is complete
data-client - @data-client/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • 8493e50 Thanks @ntucker! - Update README to include DataProvider (app routes) docs
data-client - @data-client/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

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

Published by github-actions[bot] 5 months ago

Patch Changes

  • #3074 1f1f66a Thanks @ntucker! - Add DataProvider export to /nextjs namespace.

    This provides 'App Router' compatibility. Simply add it to the root layout, ensuring
    children is rendered as a descendent.

    import { DataProvider } from '@data-client/react/nextjs';
    import { AsyncBoundary } from '@data-client/react';
    
    export default function RootLayout({ children }) {
      return (
        <html>
          <body>
            <DataProvider>
              <header>Title</header>
              <AsyncBoundary>{children}</AsyncBoundary>
              <footer></footer>
            </DataProvider>
          </body>
        </html>
      );
    }
    
  • #3074 1f1f66a Thanks @ntucker! - Compatibility with server/client component build rules

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

Published by github-actions[bot] 5 months ago

Patch Changes

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

Published by github-actions[bot] 5 months ago

Patch Changes

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

Published by github-actions[bot] 5 months ago

Patch Changes

  • #3071 7fba440 Thanks @ntucker! - React 19 JSX runtime compatibility.

    BREAKING CHANGE: Min React version 16.8.4 -> 16.14

    16.14 is the first version of React to include JSX runtime.

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

Published by github-actions[bot] 5 months ago

Patch Changes

  • #3071 7fba440 Thanks @ntucker! - React 19 JSX runtime compatibility.

    BREAKING CHANGE: Min React version 16.8.4 -> 16.14

    16.14 is the first version of React to include JSX runtime.

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

Published by github-actions[bot] 5 months ago

Patch Changes

  • #3071 7fba440 Thanks @ntucker! - React 19 JSX runtime compatibility.

    BREAKING CHANGE: Min React version 16.8.4 -> 16.14

    16.14 is the first version of React to include JSX runtime.

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

Published by github-actions[bot] 5 months ago

Patch Changes

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

Published by github-actions[bot] 5 months ago

Patch Changes

  • #3071 7fba440 Thanks @ntucker! - React 19 JSX runtime compatibility.

    BREAKING CHANGE: Min React version 16.8.4 -> 16.14

    16.14 is the first version of React to include JSX runtime.