TanStackT
TanStack5mo ago
4 replies
standard-azure

`loaderData` always possibly undefined in the `head` ?

Hello,

I see that from the types, the
loaderData
in the
head
of a route can always be undefined, but in my test it always returns the value of the loader ?

Can we use the data or it can be possibly underfined thus useless ?
image.png
Was this page helpful?