How to call just beforeUnmount()? #2521
|
Hey, Note: I tried the below but it seems the prop randomProp is still undefined in the call. |
Answered by
cexbrayat
Sep 30, 2024
Replies: 1 comment
|
You can call |
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.