Wrap .reset
function with useCallback
#179
Closed
vlad-khitev-axon
started this conversation in
Ideas
Replies: 1 comment
-
Fixed in v7.1.2 |
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
-
It seems that in v6 the reference to the
reset
function was stable, so we could safely use it as an input touseEffect
(e.g. to reset the action state when the modal window is closed). Currently, this function is recreated on each render, which looks like a breaking change. Could we roll it back?Beta Was this translation helpful? Give feedback.
All reactions