Feature request: onUnmount field listener #1576
Unanswered
alex-golubtsov
asked this question in
Ideas
Replies: 1 comment
-
I'm facing the same issue where I need to remove a value from the form using Currently, we have an Is an |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The proposal is the following:
onUnmount
callback would help to clean up things after a field is removed from the DOM.In my particular case, I render
field-name
conditionally and want to remove field's value from the form when the field gets unmounted.Currently, I have to use
useEffect
, which doesn't seem convenient enough.Beta Was this translation helpful? Give feedback.
All reactions