Async State Management without the Management
APACHE-2.0 License
Bot releases are visible (Hide)
Published by github-actions[bot] 4 months ago
#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,
);
Published by github-actions[bot] 4 months ago
eebd453
Thanks @ntucker! - MockResolver marked as 'client' code for usage with NextJSPublished by github-actions[bot] 4 months ago
428ddd1
Thanks @ntucker! - Deprecate in favor of @data-client/react/redux
Published by github-actions[bot] 4 months ago
#3095 aab27d9
Thanks @ntucker! - ExternalCacheProvider -> ExternalDataProvider
ExternalCacheProvider name is still usable
#3095 aab27d9
Thanks @ntucker! - CacheProvider -> DataProvider
CacheProvider name is still usable
Published by github-actions[bot] 4 months ago
Published by github-actions[bot] 4 months ago
Published by github-actions[bot] 4 months ago
#3095 aab27d9
Thanks @ntucker! - CacheProvider -> DataProvider
CacheProvider name is still usable
Published by github-actions[bot] 4 months ago
#3093 a998a0b
Thanks @ntucker! - Add /nextjs entrypoint - eliminating the need for @data-client/ssr package
import { DataProvider } from '@data-client/react/nextjs';
export default function RootLayout({ children }) {
return (
<html>
<body>
<DataProvider>{children}</DataProvider>
</body>
</html>
);
}
764728e
Thanks @ntucker! - Support unreleased versions of React 19
#3095 aab27d9
Thanks @ntucker! - CacheProvider -> DataProvider
CacheProvider name is still usable
Updated dependencies [764728e
]:
Published by github-actions[bot] 4 months ago
Published by github-actions[bot] 4 months ago
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
#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
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
#3074 1f1f66a
Thanks @ntucker! - Compatibility with server/client component build rules
Updated dependencies [1f1f66a
]:
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago