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!
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024