Closed Blechlawine closed 1 year ago
In Nuxt 3.5.1 the return type of useAsyncData was changed and is not nullable by default anymore. we should define it as nullable in our types: https://github.com/wobsoriano/trpc-nuxt/blob/adeb5a5afdd4ebde7743ca9e16148a0f134cb448/src/client/types.ts#L63
useAsyncData
should be:
... AsyncData<PickFrom<DataT, PickKeys> | null, DataE>
Hey, thanks! Would you like to open a PR?
In Nuxt 3.5.1 the return type of
useAsyncData
was changed and is not nullable by default anymore. we should define it as nullable in our types: https://github.com/wobsoriano/trpc-nuxt/blob/adeb5a5afdd4ebde7743ca9e16148a0f134cb448/src/client/types.ts#L63should be: