question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

could not find react-redux context value

See original GitHub issue

What version of React, ReactDOM/React Native, Redux, and React Redux are you using?

  • React: 18.2.0
  • ReactDOM/React Native: 0.70.2
  • Redux: -
  • React Redux: 8.0.4

What is the current behavior?

Error: could not find react-redux context value; please ensure the component is wrapped in a <Provider>

<Provider store={store}>
      <PersistGate persistor={persistor}>
        <StripeProvider publishableKey={Config.REACT_APP_STRIPE_PK}>
          <SafeAreaProvider>
            <ErrorBoundary FallbackComponent={ChefError} onError={errorHandler}>
              <LoadingProvider>
                <GestureHandlerRootView style={{flex: 1}}>
                  <BottomSheetModalProvider>
                    <ApplicationNavigator />
                  </BottomSheetModalProvider>
                </GestureHandlerRootView>
              </LoadingProvider>
            </ErrorBoundary>
          </SafeAreaProvider>
        </StripeProvider>
      </PersistGate>
    </Provider>

my app is wrapped, I have this problem after update

What is the expected behavior?

no error

Which browser and OS are affected by this issue?

No response

Did this work in previous versions of React Redux?

  • Yes

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
phryneascommented, Oct 5, 2022

That is your project. You will need to figure out how to manage the dependencies there yourself - that’s far out of the scope of this repo.

0reactions
mantegnouscommented, Oct 5, 2022

You will need to get rid of that react-redux@7.2.9. You can only have one version of react-redux in your application.

how can update this version?

Read more comments on GitHub >

github_iconTop Results From Across the Web

useDispatch() Error: Could not find react-redux context value ...
App must be wrapped in provider since you are using useDispatch in it. Right now it's just a child. Provider sets the context...
Read more >
could not find react-redux context value - Nelson Hernández
This a example of an error. import React, {Fragment } from 'react'; import { BrowserRouter as Router, Switch, Route } ...
Read more >
Components cannot find react-redux context value #22366
I am attempting to add Cypress to my React/Typescript project for unit testing. It uses Redux in pretty much the entire project, so...
Read more >
could not find react-redux context value - You.com
Error: could not find react-redux context value; please ensure the component is wrapped in a <Provider> If you need to access redux store...
Read more >
Accessing the Store | React Redux
Internally, React Redux uses React's "context" feature to make the Redux store accessible to deeply nested connected components. As of React ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found