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, similar to Houdini #5925

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

@loading directive, similar to Houdini #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.

@martinbonnin martinbonnin changed the title Loading directive @loading directive, similar to Houdini Nov 8, 2024
@kansson kansson closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2024
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