Skip to content

collection.utils.refetch() returns undefined #1108

@1bod

Description

@1bod
  • I've validated the bug against the latest version of DB packages

Describe the bug
collection.utils.refetch() returns a promise that resolves to undefined.

To Reproduce
Reproduction: https://stackblitz.com/edit/vitejs-vite-jqav2mya?file=src%2FApp.vue

Expected behavior
As stated in the docs (https://tanstack.com/db/latest/docs/collections/query-collection#utility-methods),

Returns QueryObserverResult for inspecting the result

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