Skip to content

Some sort of property to destroy the observer. #10

@megamidge

Description

@megamidge

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions