You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to setup a new Next.js project (v13 but using pages directory routing)
// create a makeStore functionconstmakeStore=(context: Context)=>createStore(reducer);
Code above is from the readme. After investigation, nothing gets passed on to the function.
I need function to be called with context so that I can use it with connected-next-router which uses the context as follows
code above is from example in connected-next-router repo where initStore is equivalent to makeStore
if I get next-redux-wrapper + connected-next-router combined
initialState of router will always be even when the url is something like localhost:3000/some/path
Describe the bug
I am trying to setup a new Next.js project (v13 but using pages directory routing)
Code above is from the readme. After investigation, nothing gets passed on to the function.
I need function to be called with context so that I can use it with connected-next-router which uses the context as follows
code above is from example in connected-next-router repo where initStore is equivalent to makeStore
if I get next-redux-wrapper + connected-next-router combined
initialState of router will always be even when the url is something like
localhost:3000/some/path
To Reproduce
https://codesandbox.io/s/exciting-pasteur-3tl57q
well I just took the template and added console.log to the makeStore function if that would help
Expected behavior
context need to be passed on to the initStore in useWrappedStore
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
I looked at my older project and same thing happened which was using
Additional context
Add any other context about the problem here.
I couldn't tell if initial state always being resolved to '/' is intentional
could be a question or could be a bug
thank you
The text was updated successfully, but these errors were encountered: