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 next-redux-wrapper to the latest version 🚀 #43

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

greenkeeper[bot]
Copy link
Contributor

@greenkeeper greenkeeper bot commented May 11, 2020


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


The dependency next-redux-wrapper was updated from 5.0.0 to 6.0.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Publisher: kirill.konshin
License: MIT

Release Notes for 6.0.0

Support for getStaticProps and getServerSideProps.

Major change in the way how things are wrapped in version 6.

  1. Default export withRedux is marked deprecated, you should create a wrapper const wrapper = createWrapper(makeStore, {debug: true}) and then use wrapper.withRedux(Page).

  2. Your makeStore function no longer gets initialState, it only receives the context: makeStore(context: Context). Context could be NextPageContext or AppContext or getStaticProps or getServerSideProps context depending on which lifecycle function you will wrap. Instead, you need to handle the HYDRATE action in the reducer. The payload of this action will contain the state at the moment of static generation or server side rendering, so your reducer must merge it with existing client state properly.

  3. App should no longer wrap its children with Provider, it is now done internally.

  4. isServer is not passed in context/props, use your own function or simple check const isServer = typeof window === 'undefined' or !!context.req or !!context.ctx.req.

  5. store is not passed to wrapped component props.

  6. WrappedAppProps was renamed to WrapperProps.

Commits

The new version differs by 21 commits.

  • 76d9eb1 Merge pull request #196 from kirill-konshin/dev
  • c48a3d2 Fix test after Next upgrade
  • 56ecfec Deps upgrade
  • a468dfc Merge branch 'master' into dev
  • d003d44 Readme fix
  • ef06c3a Typo in README - ) instead of } (#206)
  • 2062667 Update MyApp example in upgrading from 5->6 to use new withRedux API (#205)
  • 27cd2af Fix imports in README.md TypeScript example (#203)
  • 4d4f9fb 6.0.0-rc.8
  • 67e6a53 Static to static navigation
  • 6dfdabb 6.0.0-rc.6
  • e67a35e 6.0.0-rc.5
  • f7db5d6 6.0.0-rc.4
  • 2273153 React Persist documentation fix
  • 8087166 6.0.0-rc.3

There are 21 commits in total.

See the full diff


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

greenkeeper bot added a commit that referenced this pull request Jun 1, 2020
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Jun 1, 2020


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


Update to this version instead 🚀

Release Notes for 6.0.1

Fixed issue with opting out of automatic static optimization despite not using getInitialProps in _app

Commits

The new version differs by 11 commits.

  • fd32cac Prevent _app.js to be wrapped with default wrapper
  • 07e012d Fix: readme.md typo
  • 9b641d8 Codesandbox in readme and issue template
  • 83f58f8 Fix state reconciliation example in readme
  • 562a28d Fixed a little typo
  • 417396d Updated Saga example
  • 7033703 Create FUNDING.yml
  • b32a328 Demos & readme section about state reconciliation
  • 5eac7df Update issue templates
  • f9b4099 Readme fix
  • 95e4b40 JS examples in README.md

See the full diff

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

Successfully merging this pull request may close these issues.

0 participants