-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Holding objects in state without proxying them #506
Comments
@gsimone did you further invest in this? I also would be interested in such feature! |
My solution to this when I needed it was to store a function which returns that object instead storing the object directly. So:
do
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, we are moving a big codebase to overmind and I'm loving it <3
I wanted to ask if there's a way to hold a reference without actually proxying it, since it would be convenient to be able to transport objects around without actually listening to mutations. My temp solution is to have them in an effect.
Valtio - another proxy-based state lib - implemented a
ref
helper to opt out of proxying, think it would be possible to have something like this? I'd be up for contributing it, if it's something you are interested in adding! Otherwise, pointers as to where I could patch or otherwise add the feature in userland, would be appreciated.Thank you so much for the awesome lib!
Valtio - https:/pmndrs/valtio#holding-objects-in-state-without-tracking-them
The text was updated successfully, but these errors were encountered: