Skip to content

Double subscriptions when using useTracker in lazy components #324

Open
@ksinas

Description

@ksinas

When using useTracker in lazy components I noticed that sometimes data get subscribed, unsubscribed and subscribed again.

This happens because useMemo and useEffect sometimes gets called synchronously, thus comp.stop() gets called too late, resulting in second subscription.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugin-discussionWe are still discussing how to solve or implement it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions