Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
The topic has been locked and the export interface MetaFunction<T = AppData> {
(args: {
data: T
parentsData: RouteData
params: Params
location: Location
}): HtmlMetaDescriptor
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not sure how one is supposed to handle issues like this. I tried to submit a PR, but I don't have permission.
When writing a
meta
function, it would be nice ifdata
were typed and not justany
, like this, for example:If you changed
MetaFunction
to be generic and accepte an optional type fordata
, this would solve the problem as well as maintain backward compatibility.Beta Was this translation helpful? Give feedback.
All reactions