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
What version of that package or tool are you using?
1.0.7
What version of Remix are you using?
1.15.0
Steps to Reproduce
After installing the latest Demo Store project dependencies, run the typecheck cli command and note the various errors that arise specifically from using the defer utility.
Expected Behavior
I expect to see no type check errors when using the defer utility from @shopify/remix-oxygen.
Actual Behavior
When typing the route component's useLoaderData using typeof loader, you can see it doesn't properly type any return data from the defer utility in the loader function. However, when I explicitly type that return data there is no longer an issue. So far I've seen this issue in our own project but the latest Demo Store (1.0.2) also has the same issue.
The text was updated successfully, but these errors were encountered:
altonchaney
changed the title
[Demo Store] Typecheck issues when using the defer utility and 'typeof loader'
Demo Store: Typecheck issues when using the defer utility and 'typeof loader'
Jun 1, 2023
This happens when the server version of remix mismatches with the client version. Make sure to upgrade Hydrogen with the h2 upgrade command which makes sure the dependencies align.
What is the location of your example repository?
Hydrogen Demo Store
Which package or tool is having this issue?
Oxygen
What version of that package or tool are you using?
1.0.7
What version of Remix are you using?
1.15.0
Steps to Reproduce
After installing the latest Demo Store project dependencies, run the
typecheck
cli command and note the various errors that arise specifically from using the defer utility.Expected Behavior
I expect to see no type check errors when using the
defer
utility from@shopify/remix-oxygen
.Actual Behavior
When typing the route component's
useLoaderData
usingtypeof loader
, you can see it doesn't properly type any return data from the defer utility in the loader function. However, when I explicitly type that return data there is no longer an issue. So far I've seen this issue in our own project but the latest Demo Store (1.0.2) also has the same issue.The text was updated successfully, but these errors were encountered: