Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

initialProps call twice on client side when _app wrapped withHydrate #17

Open
MrFranke opened this issue Aug 16, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@MrFranke
Copy link

PoC - https://codesandbox.io/s/effector-next-duplication-initialprops-yyg3tv

Steps for reproduce:

  1. Open the "console" tab
  2. Click on the "First" link
  3. Look at console tab. You'll see 2 logs "first initial props"
  4. Open _app.js and remove "enhance" wrapper from App
  5. Go to index route and click "First" link. Now you'll see just one log with "first initial props"

Looks like withHydrate call initialProps twice, but should once

@MrFranke MrFranke changed the title Client initialProps call was duplicated when _app wrapped withHydrade initialProps call twie on client side when _app wrapped withHydrade Aug 16, 2022
@sergeysova sergeysova added the bug Something isn't working label Aug 17, 2022
@sergeysova sergeysova changed the title initialProps call twie on client side when _app wrapped withHydrade initialProps call twice on client side when _app wrapped withHydrade Aug 17, 2022
@sergeysova sergeysova changed the title initialProps call twice on client side when _app wrapped withHydrade initialProps call twice on client side when _app wrapped withHydrate Aug 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants