Skip to content

Constate + valtio + any hook #276

Closed Answered by dai-shi
Evalon asked this question in Q&A
Nov 14, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

While valtio is fine to be used with React Context (and useConstant is good in this case), I don't see this makes use of the "mutation" style of valtio. If I were to do something like this, I'd use react-tracked, which probably would simplify things a lot.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Evalon
Comment options

Answer selected by Evalon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants