Skip to content

Next.js 'use client' #958

Answered by dai-shi
talltyler asked this question in Bug report
Sep 26, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

If you have a valtio store and need to get a snapshot, snapshot(store) would do. But, you can directly read store too. Be aware that having the store global means it's a global variable that can be shared across multiple sessions / users.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dai-shi
Comment options

Answer selected by talltyler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants