Skip to content

Function called twice #4

@steph643

Description

@steph643

This package has a drawback: the function you pass will always be called twice in case of reactive invalidation. See the explanation here.

If you just use isolateValue to access an Iron Router route parameter, this is no big deal. But beware if you perform heavy computation in your function.

To overcome this drawback, you can use alternate packages (such as meteor-embox-value or meteor-computed-field) or use an autorun and a ReactiveVar as described here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions