Skip to content

Working with huge object #858

Answered by dai-shi
khairulhaaziq asked this question in Q&A
Discussion options

You must be logged in to vote

All I can say is give it a try.
Valtio's proxy() eagerly creates nested proxified objects on initialization, so large object takes time to initialize. This is probably a unique (and intentional) behavior compared to MobX.
On the other hand, snapshot()/useSnapshot() creates proxies on demand, so it's fairly optimized.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by khairulhaaziq
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