Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange Hydration action #562

Open
slava-lu opened this issue Nov 3, 2023 · 0 comments
Open

Strange Hydration action #562

slava-lu opened this issue Nov 3, 2023 · 0 comments
Labels

Comments

@slava-lu
Copy link

slava-lu commented Nov 3, 2023

Describe the bug

When using Broadcast Channel API with 'channel.postMessage()' function and running some action upon receiving the message an unnecessary Hydration action is fired. in 8.0 it overwritten my store. In 8.1 seems it does not but still makes me uneasy.

My app uses only 'getInitialProps' so I do not expect any Hydration actions apart from the first action on the client.

To Reproduce

Difficult to reproduce as you need to have some setup with Broadcast Channel API

Expected behavior

I expect that no Hydration action is triggered if there is no SSR.

Screenshots

image

@slava-lu slava-lu added the bug label Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant