kirill-konshin / next-redux-wrapper

Redux wrapper for Next.js
MIT License
2.67k stars 265 forks source link

Get the initial state in useSelector instead of the dipatched store via getServerSideProps #476

Closed tiavina-mika closed 1 year ago

tiavina-mika commented 2 years ago

Describe the bug

I'm using Electron with Next js with Nextron .

To Reproduce

https://github.com/tiavina-mika/noteo-desktop/tree/features/nextjs

Steps to reproduce the behavior:

  1. Clone or download the repository
  2. yarn install or npm install
  3. yarn dev or npm run dev
  4. See the console


## Expected behavior

Should have the dispatched state via getServerSide props

## Screenshots

![image](https://user-images.githubusercontent.com/42656064/171989213-d4ccc802-c87a-4453-8228-a5cc5183cbb2.png)

## Desktop (please complete the following information):

- OS: Windows 10
- Browser Chromium [for electron]
- Version [e.g. 6]
epleaner commented 1 year ago

I am getting this too.

kirill-konshin commented 1 year ago

@tiavina-mika your hydration reducer seems to ignore the slice key in payload.