-
-
Couldn't load subscription status.
- Fork 1.2k
export build hooks #3451
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
base: master
Are you sure you want to change the base?
export build hooks #3451
Conversation
|
|
✅ Deploy Preview for redux-starter-kit-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit d7bcac3:
|
|
Usage example: import React from 'react';
import store, { userSlice, buildHooksFromSlice } from 'remote_entry/globalStore';
import { Provider, createDispatchHook, createSelectorHook, createStoreHook, batch } from 'react-redux';
const GlobalStateContext = React.createContext(null);
const useStore = createStoreHook(GlobalStateContext);
const useDispatch = createDispatchHook(GlobalStateContext);
const useSelector = createSelectorHook(GlobalStateContext);
const userHooks = userSlice.buildHooksFromReactInstance({
React,
batch,
useDispatch,
useSelector,
useStore,
unstable__sideEffectsInRender: false,
}) |
No description provided.