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
A clear and concise description of what the feature is
constspringV=useSpringValue(0);springV.onChange((v)=>console.log(`val now be ${v}`));
Just like a to function but always request value and return nothing. And same for other events.
Why should this feature be included?
It can help to share a SpringValue to others by pass in props. Now, I can only add listener at useSpringValue.
Please provide an example for how this would work
Im trying to pass a SpringValue called seed (witch computed by mousemove) to Subcomponents, and each Subcomponents owned a SpringValue called ans.
Normally ans should be computed by seed (like using to instead a useSpringValue). But when I drag a Subcomponent, it must return to oraginal status and folow my dragging.
So I can only use .set and .start in to function to set seed value to ans and put return on a fake animad.div.
The text was updated successfully, but these errors were encountered:
A clear and concise description of what the feature is
Just like a
to
function but always request value and return nothing. And same for other events.Why should this feature be included?
It can help to share a
SpringValue
to others by pass in props. Now, I can only add listener atuseSpringValue
.Please provide an example for how this would work
Im trying to pass a
SpringValue
calledseed
(witch computed bymousemove
) to Subcomponents, and each Subcomponents owned aSpringValue
calledans
.Normally
ans
should be computed byseed
(like usingto
instead auseSpringValue
). But when I drag a Subcomponent, it must return to oraginal status and folow my dragging.So I can only use
.set
and.start
into
function to setseed
value toans
and put return on a fakeanimad.div
.The text was updated successfully, but these errors were encountered: