You can add the. reset()API under the ref function in the ref.ts file, and reset the value of ref to the initial value by calling the. reset () method. #674
Closed
1109176988
started this conversation in
General
Replies: 1 comment
-
You can create your own custom ref that does that. Note that this doesn't work for non-primitives since they are js references |
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
-
You can add the. reset()API under the ref function in the ref.ts file, and reset the value of ref to the initial value by calling the. reset () method.
Beta Was this translation helpful? Give feedback.
All reactions