Skip to content

Nested await breaks without pending snippet #16981

@Thiagolino8

Description

@Thiagolino8

Describe the bug

Something about the way Tanstack Query makes its promises causes the data to never be fetched (and consequently the promise never resolves) in nested queries when there isn't a boundary with a pending snippet created at the same time
This is probably partly a bug in Tanstack Query, but the fact that it requires a boundary with a pending snippet created in the same render makes me think it could also be a bug in Svellte

Reproduction

If you move the boundary outside the if block, remove it, or remove the pending snippet, the query from the PostContent file is never fetched and the promise is never resolved
repl

Logs

System Info

running Svelte compiler version 5.41.0

Severity

blocking an upgrade

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