next-redux-wrapper
next-redux-wrapper copied to clipboard
Redux wrapper for Next.js
## Describe the bug v7.0.5 Using the example in README.md as guide, I tried to set up my Next Redux Wrapper with a Redux Saga, but the SSR did not...
`import { createWrapper, HYDRATE } from "next-redux-wrapper"; import { configureStore, applyMiddleware, Store } from "@reduxjs/toolkit"; import createSagaMiddleware, { Task } from "redux-saga"; import Immutable from "seamless-immutable"; import { loggerNext }...
Redux toolkit. reducers and extraReducer is work but useSelector (for type) dont give updated state.
## Describe the bug i have createAsyncThunk function. It makes request to server (axios) and then get data, after that extraReducers handle builder.addCase in it makes state.value = action.payload, then...
**Is your feature request related to a problem? Please describe.** Currently there is no support to use state in middleware functions **Describe the solution you'd like** NextJs 12 allows [middleware](https://nextjs.org/docs/middleware)....
**Is your feature request related to a problem? Please describe.** Thinking of get store value from nextjs middleware **Describe the solution you'd like** `export const wrapper = createWrapper(makeStore);` we have...
## Describe the bug I am useing `redux-toolkit`, `redux-persist`, `next-redux-wrapper`. When saving data to the storage space, it works normally. But refresh page, the data not persisted.... ## To Reproduce...
## Describe the bug Whenever I use next-redux-wrapper, changing routes starts to get really slow. ``` export const getServerSideProps: GetServerSideProps = getStore((store) => async (ctx) => { // ... store.dispatch(setFeatureFlags(flags));...
This is in reference to my feature request https://github.com/kirill-konshin/next-redux-wrapper/issues/477 This PR is backwards-compatible and allows to optionally create multiple wrappers, each with a separate memoized store. In some edge cases...
## Describe the bug I'm using Electron with Next js with [Nextron ](https://github.com/saltyshiomix/nextron). - I dispatch actions from the server in getServerSideProps - the states is stored in the store...
When using the redux toolkit and configuring store and importing slices the Hydrate action is dispatched twice for each page on SSR and SSG even when not using App.getInitialProps !