kirill-konshin / next-redux-wrapper

Redux wrapper for Next.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wrapper.useWrappedStore throwing error

ATakaSKY opened this issue · comments

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

Did you find any solution for this?

Still seeing this, any updates?