Skip to content

collection.preload() stops working #633

Description

@kumpelstachu

After updating @tanstack/query-db-collection from 0.2.22 to 0.2.23 collection.preload() never resolves, because queryFn doesn't get called

function Component() {
    use(collection.preload())
    console.log("doesn't print")

    ...
}

Activity

  1. samwillis commented on Oct 3, 2025

    @samwillis
    Collaborator

    Thanks for the report @kumpelstachu - this was a regression introduced in #462

    #635 fixes it and adds test to ensure we don't see another regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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