You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportfunctionmeta({ matches }: Route.MetaArgs){// In versions prior to v7.0.1, the parent route data was inferred correctly.// From v7.0.2 onwards, match.id becomes unknown and type inference fails.constmetaMatch=matches.find((match)=>match&&match.id==='root');return[{title: 'New React Router App'},{name: 'description',content: 'Welcome to React Router!'},];}
I'm using React Router as a...
framework
Reproduction
https://stackblitz.com/edit/github-jh2463uj?file=app%2Froutes%2Fhome.tsx
function "meta" in home.tsx
System Info
Used Package Manager
npm
Expected Behavior
In versions prior to v7.0.1, the parent route data was inferred correctly.
match is inferred as follows:
Actual Behavior
From v7.0.2 onwards, match.id becomes unknown and type inference fails.
match is inferred as follows:
The text was updated successfully, but these errors were encountered: