Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Implement suspense on useQuery #3408

Closed
lstanden opened this issue Aug 23, 2019 · 2 comments
Closed

Implement suspense on useQuery #3408

lstanden opened this issue Aug 23, 2019 · 2 comments

Comments

@lstanden
Copy link

I'm attempting to migrate from react-apollo-hooks to @apollo/react-hooks and running into a bunch of issues due to the missing Suspense support. It would be great if the suspense flag could be incorporated.

For context, suspense simply means that the {loading} state is irrelevant, and the useQuery call will throw a promise in the event a query has not finished executing.

@zicodeng
Copy link

Feature request here: apollographql/apollo-feature-requests#162, but it hasn't attracted much attention 😞

@hwillson
Copy link
Member

hwillson commented Sep 6, 2019

Let's continue the discussion over in apollographql/apollo-feature-requests#162 (but in a nutshell: we're waiting for the React team to finalize suspense + data fetching support before getting it implemented).

@hwillson hwillson closed this as completed Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants