Skip to content

Prevent Unnecessary Dispatches in useQuery with skipToken #5022

@yeefun

Description

@yeefun

When using useQuery, can we avoid dispatch calls here by passing in skipToken? The current implementation causes performance issues when multiple components call useQuery simultaneously, resulting in too many dispatches. This forces me to use useLazyQuery to control trigger timing. However, if skipToken could prevent these dispatch calls, I wouldn't need this workaround.

Image

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