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.0
to6.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
andgetServerSideProps
.Major change in the way how things are wrapped in version 6.
Default export
withRedux
is marked deprecated, you should create a wrapperconst wrapper = createWrapper(makeStore, {debug: true})
and then usewrapper.withRedux(Page)
.Your
makeStore
function no longer getsinitialState
, it only receives the context:makeStore(context: Context)
. Context could beNextPageContext
orAppContext
orgetStaticProps
orgetServerSideProps
context depending on which lifecycle function you will wrap. Instead, you need to handle theHYDRATE
action in the reducer. Thepayload
of this action will contain thestate
at the moment of static generation or server side rendering, so your reducer must merge it with existing client state properly.App
should no longer wrap its children withProvider
, it is now done internally.isServer
is not passed incontext
/props
, use your own function or simple checkconst isServer = typeof window === 'undefined'
or!!context.req
or!!context.ctx.req
.store
is not passed to wrapped component props.WrappedAppProps
was renamed toWrapperProps
.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 🌴