React-apollo: Implement suspense on useQuery

Created on 24 Aug 2019  路  2Comments  路  Source: apollographql/react-apollo

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.

Most helpful comment

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

All 2 comments

Feature request here: https://github.com/apollographql/apollo-feature-requests/issues/162, but it hasn't attracted much attention 馃槥

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

Was this page helpful?
0 / 5 - 0 ratings