Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Using a store factory causes state updates #972

Closed
phaistonian opened this issue May 26, 2022 · 0 comments
Closed

Using a store factory causes state updates #972

phaistonian opened this issue May 26, 2022 · 0 comments

Comments

@phaistonian
Copy link

Here's the sandbox.

In the second scenario, changing the component causes the local state to be reset.

CleanShot.2022-05-26.at.16.41.49.mp4

I am not sure this is related to react-refresh or to Zustand, but it's quite annoying.

Ideas?

@pmndrs pmndrs locked and limited conversation to collaborators May 26, 2022
@dai-shi dai-shi converted this issue into discussion #973 May 26, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant