TanStackT
TanStack2y ago
3 replies
then-purple

How can I remove the InfiniteData wrapper from the TData type

I am creating an infinteQuery and using a selector to flatten and transform the data. The query works as expected but typescript is complaining because (I believe) the TData type wraps the response type with InfiniteData. Doesn't seem to make a difference whether I leave it to infer or explicitly set the types.

Thanks!
Was this page helpful?