You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
Context needs to be backwards compatible. Add the constructor(..., context) alternative?
Make sure createContext doesn't crash if older version of React.
Maybe only provide a Provider property if the React version supports useable context in the first place.
Provide the relevant global state to the methods -- the one from the context, not the built-in instance if a context is provided.
The store provided will need to be used by getGlobal(Provider) or getGlobal(store), depending on if this should use const Provider = createProvider(); or <Provider store={createStore()}>.
Should help with concurrent SSR requests.
Context needs to be backwards compatible. Add the constructor(..., context) alternative?
Make sure createContext doesn't crash if older version of React.
Maybe only provide a Provider property if the React version supports useable context in the first place.
Provide the relevant global state to the methods -- the one from the context, not the built-in instance if a context is provided.
Safe fallback if no context is provided.
Relevant docs:
https://reactjs.org/docs/legacy-context.html -
https://reactjs.org/docs/context.html#classcontexttype - 16.3+
useContext - 16.7+
The text was updated successfully, but these errors were encountered: