Skip to content

Paginated fragment doesn't work nicely with an @loading query #1408

@SeppahBaws

Description

@SeppahBaws

Describe the bug

When a paginated fragment is spread on a query annotated with @loading, the paginated query will get a node id of PendingValue, and cannot be fetched. This results in the paginated fragment not showing up on the page.
In order to make it work as expected, a workaround is to wrap the component with an if-check to only render it when @loading is finished.

I wonder if we can fix this so that the if check is not necessary.

Demo of the bug:
https://youtu.be/Wilvm7t_5Ss

Reproduction

https://github.com/SeppahBaws/houdini/tree/repro/paginated-fragment-at-loading/e2e/kit/src/routes/bug/paginated-fragment-at-loading

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions