react-redux-loading-bar icon indicating copy to clipboard operation
react-redux-loading-bar copied to clipboard

× Could not find "store" in the context of "Connect(LoadingBar)".

Open ahmadsukabul opened this issue 4 years ago • 3 comments

× Could not find "store" in the context of "Connect(LoadingBar)". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to Connect(LoadingBar) in connect options.

please help me.. thanks alot

ahmadsukabul avatar Nov 05 '19 04:11 ahmadsukabul

@ahmadsukabul That must mean that the component can't find Redux store in the context. Please make sure that you have wrapped up your React tree in the Provider as it is shown in the Redux docs: https://redux.js.org/basics/usage-with-react#passing-the-store

mironov avatar Nov 17 '19 14:11 mironov

@mironov not sure, but seems like we get this error after react-redux update to v7.1.0 even with associated store.

Malexs avatar Feb 12 '20 11:02 Malexs

@Malexs Could you provide a repository that reproduces the issue? The demo of the Loading Bar uses react-redux 7, and seems to be working fine: https://github.com/mironov/react-redux-loading-bar/tree/gh-pages

mironov avatar Feb 16 '20 11:02 mironov