Replies: 1 comment
-
Hey @pecoram , Yes, you can use const untrackedValue = untrack(() => myFunction(props.id)); Using Thank you . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I would like to know if it's possible to use untrack to store the return value of a function, similar to how createMemo works, but without the reactivity.
My question is: can untrack be used to store the return value of myFunction so as to prevent it from getting recalled? What are the implications of using untrack in this way compared to createMemo?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions