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
Initial thoughts for usage of loop.update({key: value}) were that it would match setState in React.
Here we set the entire state object to the object passed to update, whereas in React we only set the key passed to setState.
I am currently working around this with xtend
wave.loop.update(xtend(state,{moving: false}))
What are your thoughts are matching the setState behavior?
The text was updated successfully, but these errors were encountered:
Initial thoughts for usage of
loop.update({key: value})
were that it would matchsetState
in React.Here we set the entire state object to the object passed to
update
, whereas in React we only set the key passed tosetState
.I am currently working around this with
xtend
What are your thoughts are matching the
setState
behavior?The text was updated successfully, but these errors were encountered: