Skip to content

Passing ref from parent to useTracker fails to detect inViewport #11

@ffdead

Description

@ffdead

Seems like there is a race condition with the IntersectionObserver when the ref is defined in the parent component.

For now, make sure you use the useTracker() hook in the same component that collects the ref to be safe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions