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
It would be useful if there was a way to destroy the observer created by the component when we're done with it.
For example, if you're using the observer to load some content once its in view, there's no use the observer existing after that point, as the content is loaded now and nothing will happen if it leaves view and comes back.
This could be implemented using a property or something - pass in a computed boolean and then watch it. If it changes to 'true' then destroy the observer, if it changes to 'false', maybe bring the observer back (not really as important).
The text was updated successfully, but these errors were encountered:
I guess ideally the whole observer could be passed in slot props, and I tried to do that, but I had some issue with it in my case. But for me once is all I need.
It would be useful if there was a way to destroy the observer created by the component when we're done with it.
For example, if you're using the observer to load some content once its in view, there's no use the observer existing after that point, as the content is loaded now and nothing will happen if it leaves view and comes back.
This could be implemented using a property or something - pass in a computed boolean and then watch it. If it changes to 'true' then destroy the observer, if it changes to 'false', maybe bring the observer back (not really as important).
The text was updated successfully, but these errors were encountered: