Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New: Add vue/no-watch-after-await rule #1068

Merged
merged 3 commits into from
Apr 21, 2020
Merged

Conversation

ota-meshi
Copy link
Member

This PR adds the vue/no-watch-after-await rule.

The vue/no-watch-after-await rule reports the watch() after await expression.


ref #1035

@ota-meshi
Copy link
Member Author

ota-meshi commented Mar 8, 2020

I was unable to reproduce this asynchronous issue with Vue3 "setup".
I keep the status "work in progress" until I see the actual problem.

@ota-meshi
Copy link
Member Author

I have found that registering a watch asynchronously has the problem that the watch remains after the instance of the Vue component is destroyed.

@ota-meshi
Copy link
Member Author

Hmm... but, the remaining watches can be deleted with StopHandle.

@ota-meshi ota-meshi force-pushed the add-rule/no-watch-after-await branch from 902d352 to 6bea92e Compare March 15, 2020 09:02
@ota-meshi ota-meshi force-pushed the add-rule/no-watch-after-await branch from 6bea92e to 7d22e76 Compare April 18, 2020 09:31
@ota-meshi ota-meshi merged commit f4de98e into master Apr 21, 2020
@ota-meshi ota-meshi deleted the add-rule/no-watch-after-await branch April 21, 2020 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant