Will there be a new generator for plain async functions? #8530
-
Next.js 13 was released yesterday with: If I want to use that, react-apollo-hooks generator cannot be used because I need plain async functions which return the data. Hooks won't work. This going to need a new generator. Is there a plan to introduce it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I guess ideally, you can use Codegen's (I'm also saying that in the context of preferring |
Beta Was this translation helpful? Give feedback.
I guess ideally, you can use Codegen's
TypedDocumentNode
and have it integrated into your NextJS app (and the new async feature) with a small wrapper around thefetch
function that hooks intoTypedDocumentNode
?(I'm also saying that in the context of preferring
TypedDocumentNode
in general, instead of framework-specific hooks)