How to call just beforeUnmount()? #2521
-
Hey, Note: I tried the below but it seems the prop randomProp is still undefined in the call.
|
Beta Was this translation helpful? Give feedback.
Answered by
cexbrayat
Sep 30, 2024
Replies: 1 comment
-
You can call |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cexbrayat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @steven-twerdochlib
You can call
wrapper.unmount()
which will unmount the component and call the hooks.