apollo-kotlin icon indicating copy to clipboard operation
apollo-kotlin copied to clipboard

Suspense

Open sonatard opened this issue 1 year ago • 1 comments

Use case

Suspense lets you display a fallback until its children have finished loading.

React docs https://ja.react.dev/reference/react/Suspense

Jetpack Compose implementation https://docs.soil-kt.com/guide/query/hello-query#step-4-compose-runtime

Describe the solution you'd like

There is no need to implement loading in individual components.

Reference

I created this issue to Jetpack Compose. https://issuetracker.google.com/issues/342228901

sonatard avatar May 23 '24 03:05 sonatard

Thanks for opening this! Suspense is a concept that's been well received by the React community and Apollo Client users, so we're definitely interested in tracking what this feature could look like in Apollo Kotlin and Compose.

bignimbus avatar May 23 '24 13:05 bignimbus