The Wayback Machine - https://web.archive.org/web/20211020225424/https://github.com/vuetifyjs/vuetify/issues/12846
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

[Feature Request] Disconnect from the Intersection Observer if monitoring not required any longer #12846

Open
irfaans opened this issue Dec 27, 2020 · 2 comments

Comments

@irfaans
Copy link

@irfaans irfaans commented Dec 27, 2020

Problem to solve

The Intersection Observer could be using and taking up resources and affect performance if monitoring of a div, v-card, etc. is not required any longer.

Proposed solution

v-intersect="required ? 'onIntersect' : false"

@KaelWD
Copy link
Member

@KaelWD KaelWD commented Jan 7, 2021

It does have a .once modifier if that solves your problem.

@irfaans
Copy link
Author

@irfaans irfaans commented Jan 7, 2021

Many thanks your response. I was hoping to still observe visibility even after first time and some stage disconnect on a certain condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants