Skip to content

Why not use proxyWithComputed with React? #314

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

You must be logged in to vote

It says "prefer" does this mean it will break or is it a subtle issue?

It doesn't break. It's just that the combination of proxyWithComputed and useSnapshot is not computationally super efficient. And, it's counter-intuitive from the user perspective, thus there's the strong warning message.

Would you please explain what is your confusion and how you would expect for the transition? A small code snippet would help.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@GollyJer
Comment options

@dai-shi
Comment options

@GollyJer
Comment options

Answer selected by GollyJer
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