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?
Initial thoughts for usage of
loop.update({key: value})were that it would matchsetStatein 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
xtendWhat are your thoughts are matching the
setStatebehavior?