-
big Object, proxy 10000 tims; why valtio's perf is slower so much? seems like both those two libs just warp a Proxy , same way demo: https://stackblitz.com/edit/react-9ej1xu?file=src%2FApp.js,src%2FresData.js,src%2Findex.js |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Nov 8, 2023
Replies: 1 comment 2 replies
-
Currently, valtio's In v2, we will be changing this behavior. #703 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jiangjiu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, valtio's
proxy(initialObject)
copies the initialObject deeply to keep initialObject isolated.So, you don't need to do
Object.assign({}, ...)
.In v2, we will be changing this behavior. #703