# Vue: preserve requirements through advanced agent edits - [Cancel and invalidate Vue watcher requests before the next await](https://frameworkrecipes.dev/vue/watcher-cancellation/guide.md): A tenant selection can change while an older query is still in flight. A watcher cleanup belongs to that invocation, so it can stop and invalidate exactly the work the next invocation supersedes. The onCleanup argument also works where onWatcherCleanup is unavailable. - [watcher-registers-cleanup rule pack](https://reporules.fyi/vue/watcher-cancellation/rule-pack.zip): YAML requirement and agent task. - [Dispose Vue realtime subscriptions when the owner disappears](https://frameworkrecipes.dev/vue/subscription-lifecycle/guide.md): A component can disappear while its socket and callback remain alive. That leaks resources and can continue collecting one tenant’s events after the user navigates elsewhere. Pair acquisition with scope disposal and invalidate callbacks that were already queued. - [feed-scope-disposes-resources rule pack](https://reporules.fyi/vue/subscription-lifecycle/rule-pack.zip): YAML requirement and agent task. - [Framework rule pack](https://reporules.fyi/vue/rule-pack.zip): All requirements from this framework site.