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

Usage with computed state? #3

Open
joeyfigaro opened this issue Jun 5, 2022 · 1 comment
Open

Usage with computed state? #3

joeyfigaro opened this issue Jun 5, 2022 · 1 comment

Comments

@joeyfigaro
Copy link

Any documentation on how you might combine this library with proxyWithComputed? Running into issues with non-serializable objects in my store (that aren't actions).

Thank you!

@Noitidart
Copy link
Owner

Noitidart commented Jul 7, 2022

Hey @joeyfigaro, correct proxyWithPersist is only meant for serializable data. Any changes on the proxy that is returned from proxyWithPersist will get written to disk. For computed values, I have them on a seperate proxy. But I understand, maybe you don't want those computations recalculated. Does wrapping proxyWithPersist with proxyWithComputed work? If serializable it might work.

Also sorry I missed this topic, I must have missed the notification.

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