Skip to content

Example for stopping Composition API watcher seems odd #2236

Closed Answered by skirtles-code
AloisSeckar asked this question in Q&A
Discussion options

You must be logged in to vote

I don't understand the question. unwatch is a function, you invoke it using unwatch(). The name unwatch is arbitrary, as it's just a local variable name being used to hold the function returned by watchEffect. I'm not sure why you think it's weird or unclear.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AloisSeckar
Comment options

Answer selected by AloisSeckar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants