kirill-konshin / next-redux-wrapper

Redux wrapper for Next.js
MIT License
2.67k stars 266 forks source link

wrapper.useWrappedStore throwing error #503

Open ATakaSKY opened 1 year ago

ATakaSKY commented 1 year ago

Getting TypeError: Cannot destructure property 'store' of 'useReduxContext(...)' as it is null. error after migrating to latest version of this package. I have changed this due to the warning in the console /!\ You are using legacy implementaion. Please update your code: use createWrapper() and wrapper.useWrappedStore().

Versions used - next-redux-wrapper:8.0.0 Nextjs : 13.0.2 React: 18.2.0 react-redux: 8.0.5

vitorcosta039 commented 1 year ago

Did you find any solution for this?

GoudekettingRM commented 1 year ago

Still seeing this, any updates?

mathod31 commented 1 month ago

Same problem here...