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?
Hydrogen ~2024.1.1
What version of Remix are you using?
2.5.1
Steps to Reproduce
Make a query to a third party api in the loader function while using the worker runtime locally (using the --legacy-runtime fixes this issue)
Following the Hydrogen docs for third party data fetching (https://shopify.dev/docs/custom-storefronts/hydrogen/data-fetching/third-party), I have created my own api client for searchspring, initialised it in the Remix context and queried in the loader of a collection route. This works fine the first few times, however at a certain point the route will just stop working, freeze and stay pending forever.
I wrote the initial code on Hydrogen ~2023.10.3 and it works fine so curious to know if this is related to the recent update
The only way to fix this after it has crashed for the first time is to then pass the promise out of the loader use Suspense and Await to resolve it client side or just use the --legacy-runtime flag when running dev
Here is a link to another potentially related issue raised that describes similar behaviour: #1720
Expected Behavior
Data fetching from a third party api should be able to be queried and resolve server side in the loader function of a route
Actual Behavior
Route will never resolve and stays pending forever and will crash the entire app.
The text was updated successfully, but these errors were encountered:
@mwshepherd would you please share your computer spec? We work on Hydrogen everyday and haven't been able to reproduce this issue. So am suspecting it might has something to do with the computer spec. If it is, it would give us a direction to look into where the problem might be
What is the location of your example repository?
No response
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
Hydrogen ~2024.1.1
What version of Remix are you using?
2.5.1
Steps to Reproduce
--legacy-runtime
fixes this issue)Following the Hydrogen docs for third party data fetching (https://shopify.dev/docs/custom-storefronts/hydrogen/data-fetching/third-party), I have created my own api client for searchspring, initialised it in the Remix context and queried in the loader of a collection route. This works fine the first few times, however at a certain point the route will just stop working, freeze and stay pending forever.
I wrote the initial code on Hydrogen
~2023.10.3
and it works fine so curious to know if this is related to the recent updateThe only way to fix this after it has crashed for the first time is to then pass the promise out of the loader use Suspense and Await to resolve it client side or just use the
--legacy-runtime
flag when running devHere is a link to another potentially related issue raised that describes similar behaviour: #1720
Expected Behavior
Data fetching from a third party api should be able to be queried and resolve server side in the loader function of a route
Actual Behavior
Route will never resolve and stays pending forever and will crash the entire app.
The text was updated successfully, but these errors were encountered: