Bot releases are hidden (Show)
Removed actionsFilter
, serializeAction
and deserializeAction
. Instead, we now have serialize
and deserialize
methods, that receive full array of actions from each lifecycle method, and user has full control over filtering and serialization.
Full Changelog: https://github.com/kirill-konshin/next-redux-wrapper/compare/9.0.0-rc.1...9.0.0-rc.2
Published by kirill-konshin over 1 year ago
Replaced HYDRATE action with actions replayed on client.
Full Changelog: https://github.com/kirill-konshin/next-redux-wrapper/compare/8.1.0...9.0.0-rc.1
Published by kirill-konshin almost 2 years ago
Fix https://github.com/kirill-konshin/next-redux-wrapper/issues/493 https://github.com/kirill-konshin/next-redux-wrapper/issues/495 https://github.com/kirill-konshin/next-redux-wrapper/issues/496
Full Changelog: https://github.com/kirill-konshin/next-redux-wrapper/compare/8.0.0...8.1.0
Published by kirill-konshin about 2 years ago
Hook-based implementation
Published by kirill-konshin almost 3 years ago
Hook-based component instead of class-based
Published by kirill-konshin about 3 years ago
Proper type fix for issue #412
Published by kirill-konshin about 3 years ago
Remove deprecated UNSAFE_componentWillReceiveProps
#380
Published by kirill-konshin about 3 years ago
Fixed type issue #412
Published by kirill-konshin over 3 years ago
Removed console.log
Published by kirill-konshin over 3 years ago
Fixed issue #378 when initialProps
from getInitialPageProps
were not unwrapped.
Published by kirill-konshin over 3 years ago
Add support for Redux Toolkit and some type enhancements
Fixed hot reload
Migration guide: https://github.com/kirill-konshin/next-redux-wrapper#upgrade-from-6x-to-7x
Published by kirill-konshin over 3 years ago
Fixed hot reload
Published by kirill-konshin almost 4 years ago
Add support for Redux Toolkit and some type enhancements
Published by kirill-konshin over 4 years ago
Fix async in getServerSideProps
Published by kirill-konshin over 4 years ago
Fixed issue with opting out of automatic static optimization despite not using getInitialProps
in _app
Published by kirill-konshin over 4 years ago
Support for getStaticProps
and getServerSideProps
.
Major change in the way how things are wrapped in version 6.
Default export withRedux
is marked deprecated, you should create a wrapper const wrapper = createWrapper(makeStore, {debug: true})
and then use wrapper.withRedux(Page)
.
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.
App
should no longer wrap its children with Provider
, it is now done internally.
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
.
store
is not passed to wrapped component props.
WrappedAppProps
was renamed to WrapperProps
.
Published by kirill-konshin over 4 years ago
Breaking changes
Old-style overrides were replaced with regular Next.js interfaces:
NextJSContext
-> NextPageContext
NextJSAppContext
-> AppContext
you can import them as usual:
import {NextPageContext, AppContext} from 'next';
Published by kirill-konshin about 5 years ago
Fix #156 incorrect path to sources
Published by kirill-konshin about 5 years ago
Published by kirill-konshin about 5 years ago