Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SeppahBaws opened this issue Jan 7, 2025 · 0 comments
Open

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

SeppahBaws opened this issue Jan 7, 2025 · 0 comments

Comments

@SeppahBaws
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant