Pass useCatch data to the MetaFunction #4020
runoncedev
started this conversation in
Proposals
Replies: 0 comments
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.
-
Right now there is no way to tell if a
Response
has been thrown (by some loader, etc) inside theMetaFunction
.I think this feature could be useful to render different meta tags depending on the response. E.g. rendering
<title>Page not found</title>
in case of a 404 response.As a workaround, I'm checking for
!data
to render a different title, but it's not the most reliable solution I think.Beta Was this translation helpful? Give feedback.
All reactions