Open 1216892614 opened 1 month ago
https://github.com/user-attachments/assets/93acf4c4-05d0-4c36-b629-88a554bd44de
And TBH, I use useSpringValue
much much more than useSpring
or others. I do think SpringValue
should be the major hero feature, not useSpirng
.
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
.