On initial page load, the loader in the route app._index
is called twice, resulting in the functions in that loader to also be called twice.
The highlighted line is before the page is manually refreshed. Also note the timestamps
When refreshing on another route ( app/invoice
) the issue doesn’t occur, note the "Big function called"
log as an indicator. Which is a function called on the app._index
route loader.
I checked if this was an issue on the regular Remix template
Refreshing on route /app:
Refreshing on route /app/invoice:
Reproduction:
Setup Shopify remix app template
Then only changed the routes, adding the console.log
I’ve uploaded the repo here
This issue was originally posted in the Remix template issues, here
Unfortuantely, it was closed, the reason here. However, after some discoveries I decided to repost it here since the maintainer seems to be unavailable. So the isuse can hopefully be investigated.
I believe this issue started happening between March 27th-30th (2025). As my endpoint to receive APP_SUBSCRIPTIONS_UPDATE
webhooks sends me emails. And between those dates, I started receiving two of the same email.
Anyways, I also discovered footage of back in September 24, that indirectly demonstrates that it wasn’t an issue back then and that its a new issue.
Please view here
Possible related issues:
GH Shopify App Bridge Issue 498