unstable_data
with LoaderFunction
using unstable_singleFetch
breaks type inference
#9970
Labels
unstable_data
with LoaderFunction
using unstable_singleFetch
breaks type inference
#9970
Reproduction
https://stackblitz.com/edit/remix-run-remix-qkcaqv?file=app%2Froot.tsx%3AL44
System Info
Used Package Manager
npm
Expected Behavior
Types of data returned from LoaderFunction should be inferred correctly.
Actual Behavior
Types are being incorrectly inferred by
useLoaderData<typeof loader>()
, resulting in{}
.The text was updated successfully, but these errors were encountered: