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

Update to support Next 13 / next-redux-wrapper 8 #102

Merged
merged 11 commits into from
Nov 4, 2023
Merged

Conversation

danielr18
Copy link
Owner

@danielr18 danielr18 commented Oct 11, 2023

Breaking changes:

  • The initial state will be initialized empty if the initial URL is not provided. When using the hook version of next-redux-wrapper, the make store function doesn't receive the URL (See parameter 'context' is empty for makeStore function kirill-konshin/next-redux-wrapper#554)

    {
            pathname: '',
            search: '',
            hash: '',
            href: '',
     }
    

    If the initial URL is not provided when creating the store, the location can be set after hydration like this:

      const {store, props} = reduxWrapper.useWrappedStore(rest);
      
      useEffect(() => {
        Router.ready(() => {
          store.dispatch(onLocationChanged(locationFromUrl(Router.asPath)));
        });
      }, [store]);

@danielr18
Copy link
Owner Author

Released as [email protected]

@danielr18
Copy link
Owner Author

@LeeMir Can you try out [email protected]?

Patrick Schedler and others added 4 commits October 11, 2023 10:26
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](SamVerschueren/decode-uri-component@v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Daniel Reinoso <[email protected]>
@LeeMir
Copy link

LeeMir commented Oct 12, 2023

LGTM :)
Thank you for sharing your time! 🙇 🙇 ☺️

@danielr18 danielr18 merged commit b39f8c0 into master Nov 4, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants