Skip to content

How to do ensureQueryData with Tanstack DB? #480

@coryhouse

Description

@coryhouse

Scenario: I'd like to prefetch data without using a join. A join prefetches, but it also blocks rendering until complete. Tanstack Query's ensureQueryData quietly fetches in the background, and doesn't block rendering. I tried using it with Tanstack DB, but it doesn't appear to work.

Related post: https://x.com/housecor/status/1962621474478444662

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