App reviews, troubleshooting, and recommendations
I have run into a problem with the loader running multiple times (4 times on a clean install).
Ideally a loader should only run once per request, right? How do I fix this?
Why is this a problem?
It eats away at resources and load time, and since a lot of requests are async, it results in a very hard environment to debug.
Steps to reproduce:
1. Do a fresh install, following this guide, using Typescript:
https://shopify.dev/docs/apps/getting-started/create
2. Launch VSCode and a javascript debug terminal
3. Attach a breakpoint at line 20 (first line of the loader), inside app._index.tsx
The breakpoint is hit 4 times.
I've got the same problem and posted it on GitHub too:
https://github.com/Shopify/shopify-app-template-remix/issues/474.
If you have any ideas on how to fix this, I'd really appreciate it. Thanks!
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025