Replies: 1 comment
-
|
Thanks for your feedback. For now, I'd suggest to try use-valtio as an escape hatch. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an app where the image can update without the image_url updating, this caused an issue with useSnapshot and it would not register a change as image_url was identical to the previous one. So setting image_url would not update the image
A solution for this could be to add an option to useSnapshot, like this: useSnapshot(state, {disableOptimization:true});
Currently the solution I'm using is this:
thought it is very ugly and causes 10ms of "flashing"
Maybe there is another way to solve this better?
Beta Was this translation helpful? Give feedback.
All reactions