-
-
Notifications
You must be signed in to change notification settings - Fork 240
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to update Valtio state from redux devtools? #260
Comments
Thanks for opening the issue. AFAIK, "Jump" should work at least. Have you tried it? |
Hi @dai-shi!
I tried this: |
Can you try this: {
type: "JUMP_TO_STATE",
state: {
count: 9,
text: 'hey'
}
} |
That didn't seem to do anything I'm afraid! |
* feat: assign JSON.parse in dispatch * chore: remove devtools from example * fix: remove isSupportedObject Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com> * Update src/vanilla.ts Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com> * fix: handle non-supported values * Update src/utils/devtools.ts Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com> * Update src/utils/devtools.ts Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com> * Update src/utils/devtools.ts Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com> * Update src/utils/devtools.ts Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com> * empty commit * empty commit Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com> Co-authored-by: daishi <daishi@axlight.com>
Hi there! 馃憢 馃槃
I'm using Valtio with redux devtools so I can view my app state. Is there is a way to update state from the dev tools?
With redux you would dispatch an action to update state. Is something like this possible with Valtio?
Thanks again for all the amazing state tools! 馃殌
Edit:
I found this repo - https://github.com/oslabs-beta/deValtio . I tried it but it didn't work for me, presumably it's in development. A Valtio chrome extension would be amazing!
Additionally I often wonder if people are hesitant to use state libraries that don't clearly show state in devtools. Like with context you can see and modify context state in the react devtools, which is nice.
I know valtio and zustand avoid any need for context which is great, but perhaps there could be an optional way of wrapping your app in some sort of valtio state-helper. So we could see and modify valtio state from the react devtools? 馃
I've not cracked open the valtio src so no idea if this is possible, just a thought! 馃槃
The text was updated successfully, but these errors were encountered: