Skip to content

Concurrency issue with useFind #418

@Poyoman39

Description

@Poyoman39

I have found a problem with the current implementation of useFindClient.

A fetchData is run synchronously at first render, then useEffect run cursor.observe({ which watch for changes on cursor.

On my component there is a concurrency issue with changes happening between the first render and the useEffect (so between the first fetchData and the observer creation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions