Passing the info
prop in a resource fetcher breaks type inference for createResource<T>
#1250
Labels
info
prop in a resource fetcher breaks type inference for createResource<T>
#1250
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Passing the
info
prop in a resource fetcher breaks type inference forcreateResource<T>
and it's inferred asResource<unknown>
. Without it the type is correctly inferred to beResource<number | undefined>
Your Example Website or App
https://stackblitz.com/edit/vitejs-vite-wku3ye?file=src%2FApp.tsx
The text was updated successfully, but these errors were encountered: