useTransform callback undocumented parameter #3467
Unanswered
Emil-babayan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
This syntax is deprecated, prefering value.get()
const z = useTransform(() => x.get() + y.get()) // z.get() === 2
…On Sun, 11 Jan 2026 at 15:10, Emil Babayan ***@***.***> wrote:
There's a possibility to call useTransform with a callback function that
itself receives an argument. However, this behavior is nowhere to be
described in the official docs. I found it by accident in JSdocs. Is there
any reliable (preferably official) documentation on this?
0957F785-7B75-4ED8-861B-67BA8C5B9588.png (view on web)
<https://github.com/user-attachments/assets/280d7e20-6e50-42f8-aeb2-a7062d9e066c>
—
Reply to this email directly, view it on GitHub
<#3467>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB34WKTJ667LSLZTDLTKLYD4GJKW5AVCNFSM6AAAAACRKW3V3OVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZZGMZTCNJYGM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There's a possibility to call useTransform with a callback function that itself receives an argument. However, this behavior is nowhere to be described in the official docs. I found it by accident in JSdocs. Is there any reliable (preferably official) documentation on this?
Beta Was this translation helpful? Give feedback.
All reactions