-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
Description
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).
juanpprieto, jasontheiler, patrickcate, gion and MartinMalinda