Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference between derive and proxyWithComputed? #1

Closed
jeffjose opened this issue Jul 28, 2022 · 1 comment
Closed

Difference between derive and proxyWithComputed? #1

jeffjose opened this issue Jul 28, 2022 · 1 comment

Comments

@jeffjose
Copy link

It sounds like both derive and proxyWithComputed can be used to create new attributes that respond to changes in the original state, but sounds like there's a subtle difference?

@wobsoriano
Copy link
Owner

derive can create a new proxy, whereas proxyWithComputed can only attach properties to the self-proxy.

Per Daishi, use derive first, and only reach out proxyWithComputed if something doesn't work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants