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
The code posted successfully passes the task with name Hello to meta, and it gets applied to the document title in the browser. But TypeScript reports that 'data' is of type 'unknown' inside of meta.
The text was updated successfully, but these errors were encountered:
Reproduction
https://stackblitz.com/edit/remix-run-remix-qggawd?file=app%2Froutes%2Fhello.tsx
System Info
Used Package Manager
yarn
Expected Behavior
The docs for
meta
describe a TypeScript-friendly approach for usingloader
data inmeta
: https://remix.run/docs/en/main/route/meta#dataI have a Remix app in SPA mode using
clientLoader
s. I tried to take a similar approach to use typedclientLoader
data inmeta
:Actual Behavior
The code posted successfully passes the
task
with nameHello
tometa
, and it gets applied to the document title in the browser. But TypeScript reports that'data' is of type 'unknown'
inside ofmeta
.The text was updated successfully, but these errors were encountered: