The embedded app works normally when opened from within Shopify Admin.
However, when navigating to the app from an external source or reloading the page multiple times, it enters an infinite reload loop.
Steps to Reproduce
Open the embedded app inside Shopify Admin.
Press Ctrl + R 3 times.
The app starts reloading continuously.
Expected Behavior
The app should remain stable when reloaded or accessed via external navigation.
Actual Behavior
The app continuously reloads and never reaches a stable state.
Has anyone encountered this issue or found a reliable workaround?
I am experiencing the same issue. Seems like a very serious problem. In my case reloading page just once is enough to put it in the loop. The loop ends after 4-5 reloads sometimes more. I am not sure if this is consistent but whenever I open network tab to inspect it then it is not happening super strange.
@farid After you open network tab, the issue is gone completely, isn’t it? Does it still happen when you close the network tab now? Can you reproduce on other shops?
I noticed checking the “Disable Cache” checkbox in the development console solve the reload loop issue, could it be that this checkbox is activated when you open the network tab?