You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I tried to use onUnmounted outside of setup, the console got a warning
What is expected?
I don't know what caused it
What is actually happening?
When I tried to use onUnmounted outside of setup, the console got a warning
onUnmounted is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.