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

Loading directive #5925

Open
kansson opened this issue May 30, 2024 · 1 comment
Open

Loading directive #5925

kansson opened this issue May 30, 2024 · 1 comment

Comments

@kansson
Copy link

kansson commented May 30, 2024

Use case

Data loading can be simplified with loading states.

Describe the solution you'd like

The idea comes from https://github.com/HoudiniGraphQL/houdini and can be used as a reference for implementation. See https://houdinigraphql.com/guides/loading-states#defining-the-shape for relevant docs.

@BoD
Copy link
Contributor

BoD commented May 31, 2024

Hi! Thanks for reaching out.

This is an interesting idea. I could see this especially useful with @defer where different parts of the received model can have been received or not yet (currently modeled as null). Not 100% sure of the benefits in other cases, where (if I understand correctly) @loading fields will either be all loading, or all filled at the same time. Don't hesitate to add more context / examples to illustrate how this could be helpful in Kotlin/Compose.

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

No branches or pull requests

2 participants