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
Inside of components, we'll do: const foo = useSharedValue(0);
What if we want to do the same, but outside of a react component? For example, how can this be done from inside a store like Redux or Zustand?
In my case, I have a zustand store in which I'm orchestrating complex animations. I'd like to be able to initialize and modify shared values directly in the store, so I can continue to have dumb, modular components.
I hear there is makeMutable, but I can't find anything official on it.
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
-
Inside of components, we'll do:
const foo = useSharedValue(0);
What if we want to do the same, but outside of a react component? For example, how can this be done from inside a store like Redux or Zustand?
In my case, I have a zustand store in which I'm orchestrating complex animations. I'd like to be able to initialize and modify shared values directly in the store, so I can continue to have dumb, modular components.
I hear there is makeMutable, but I can't find anything official on it.
Beta Was this translation helpful? Give feedback.
All reactions