You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's my first time using Leva. I have a question about its behavior. I created an example to explain the case https://codesandbox.io/s/kind-burnell-gh33d2?file=/src/App.js better.
I have two pages managed by react-router, I'm on the page where are the 3D canvas and the controls, if I change the color of the object and go back to the previous page when I go back to the canvas page I'll have the color chosen at the last moment and not the initial one. Is it a correct behavior? (I think that maybe can be something related to the store inside the component) Is there any way to restore the initial state when changing pages? Thank you
I found a solution, but I'm not sure if it is correct
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It's my first time using Leva. I have a question about its behavior. I created an example to explain the case https://codesandbox.io/s/kind-burnell-gh33d2?file=/src/App.js better.
I have two pages managed by react-router, I'm on the page where are the 3D canvas and the controls, if I change the color of the object and go back to the previous page when I go back to the canvas page I'll have the color chosen at the last moment and not the initial one. Is it a correct behavior? (I think that maybe can be something related to the store inside the component) Is there any way to restore the initial state when changing pages? Thank you
I found a solution, but I'm not sure if it is correct
Beta Was this translation helpful? Give feedback.
All reactions