Update next-redux-wrapper to the latest version 🚀 #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚨 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.0to6.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
getStaticPropsandgetServerSideProps.Major change in the way how things are wrapped in version 6.
Default export
withReduxis marked deprecated, you should create a wrapperconst wrapper = createWrapper(makeStore, {debug: true})and then usewrapper.withRedux(Page).Your
makeStorefunction no longer getsinitialState, it only receives the context:makeStore(context: Context). Context could beNextPageContextorAppContextorgetStaticPropsorgetServerSidePropscontext depending on which lifecycle function you will wrap. Instead, you need to handle theHYDRATEaction in the reducer. Thepayloadof this action will contain thestateat the moment of static generation or server side rendering, so your reducer must merge it with existing client state properly.Appshould no longer wrap its children withProvider, it is now done internally.isServeris not passed incontext/props, use your own function or simple checkconst isServer = typeof window === 'undefined'or!!context.reqor!!context.ctx.req.storeis not passed to wrapped component props.WrappedAppPropswas renamed toWrapperProps.Commits
The new version differs by 21 commits.
76d9eb1Merge pull request #196 from kirill-konshin/devc48a3d2Fix test after Next upgrade56ecfecDeps upgradea468dfcMerge branch 'master' into devd003d44Readme fixef06c3aTypo in README -)instead of}(#206)2062667Update MyApp example in upgrading from 5->6 to use new withRedux API (#205)27cd2afFix imports in README.md TypeScript example (#203)4d4f9fb6.0.0-rc.867e6a53Static to static navigation6dfdabb6.0.0-rc.6e67a35e6.0.0-rc.5f7db5d66.0.0-rc.42273153React Persist documentation fix80871666.0.0-rc.3There 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 🌴