Skip to content
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

useSelector breaking v0.24.0 #1726

Closed
rechandler opened this issue Feb 4, 2021 · 2 comments
Closed

useSelector breaking v0.24.0 #1726

rechandler opened this issue Feb 4, 2021 · 2 comments

Comments

@rechandler
Copy link

could not find react-redux context value; please ensure the component is wrapped in a
Error: could not find react-redux context value; please ensure the component is wrapped in a
at useReduxContext (http://localhost:7910/main.8dc4a9e79da6f0a4eb85.bundle.js:136408:11)
at useSelector (http://localhost:7910/main.8dc4a9e79da6f0a4eb85.bundle.js:136530:28)
at VehicleInfo (http://localhost:7910/main.8dc4a9e79da6f0a4eb85.bundle.js:151707:86)
at renderWithHooks (http://localhost:7910/main.8dc4a9e79da6f0a4eb85.bundle.js:124957:18)
at mountIndeterminateComponent (http://localhost:7910/main.8dc4a9e79da6f0a4eb85.bundle.js:127636:13)
at beginWork (http://localhost:7910/main.8dc4a9e79da6f0a4eb85.bundle.js:128750:16)
at HTMLUnknownElement.callCallback (http://localhost:7910/main.8dc4a9e79da6f0a4eb85.bundle.js:110342:14)
at Object.invokeGuardedCallbackDev (http://localhost:7910/main.8dc4a9e79da6f0a4eb85.bundle.js:110391:16)
at invokeGuardedCallback (http://localhost:7910/main.8dc4a9e79da6f0a4eb85.bundle.js:110446:31)
at beginWork$1 (http://localhost:7910/main.8dc4a9e79da6f0a4eb85.bundle.js:133357:7)

This is the error being thrown from components that use the useSelector hook. Downgrading to v 0.23.0 fixes the issue.
Before this happened I ran yarn rw upgrade so all the rw components were updated to 0.24.0.

Any component that uses useSelector won't work

@rechandler rechandler changed the title useDispatch breaking v0.24.0 useSelector breaking v0.24.0 Feb 4, 2021
@rechandler
Copy link
Author

The issue for anyone else who might come across this was because RedwoodProvider was replaced by Redwood Apollo Provider.
#1639
Swap those out and you'll be good to go.

@thedavidprice
Copy link
Contributor

Full details and "How to upgrade" found in respective sections of the v0.24 Release Notes:
https://github.com/redwoodjs/redwood/releases/tag/v0.24.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants