V2_MetaFunction type incorrect for error boundaries #5786
Labels
bug
Something isn't working
feat:links-meta
Issues related to links()/meta()
feat:typescript
v2
Issues related to v2 apis
What version of Remix are you using?
1.14.1
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
V2_MetaFunction
generic and pass<typeof loader>
data.whatever
and see that the types are totally cool with thatExpected Behavior
The types should warn that the
data
property could beundefined
.Actual Behavior
Meta functions are called for error boundaries so the
data
property that's passed could beundefined
. The types don't allow for this currently.The text was updated successfully, but these errors were encountered: