`useSuspenseQuery` is blocking my upgrade to v5, any alternative solutions?
I'm trying to upgrade from v4 to v5, and the only change blocking my path is that
suspense: boolean
was removed as an option on useQuery
and replaced with separate hooks like useSuspenseQuery
.
I'm using graphql-codegen
to generate all of my queries automatically. But of course they are all generated as useQuery
.
In V4, I was able to simply pass an option to make my queries use suspense
to make queries use suspense
.
What do I do now? There's no way that i can see to generate some queries as useSuspenseQuery
. Aside from reverting ALL of my suspense code to regular queries, loading and error handling, do I have any other options if I want to upgrade to v5 and still generate my queries using graphql-codegen
?0 Replies