Embedded App Reload Loop on Page Refresh / External Navigation

Issue

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

  1. Open the embedded app inside Shopify Admin.

  2. Press Ctrl + R 3 times.

  3. 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? :folded_hands:

2 Likes

Yep, experiencing the similar issue here : Redirect loop if I press enter on the address bar to load the app again - #11 by soulchild

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.

cc: @Liam-Shopify

@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?

Hi @Henry_Tao ,

yes, it is happening in other apps and stores. In this thread it is being discussed as well:

1 Like

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?

Hey @Henry_Tao it would be easier to show this with screen recording. It never happens when dev console is open but randomly happening when not.

This explains why it works for me when I open console.

It’s mitigated. Let’s us know if you still see it or something else goes wrong.

1 Like

This is fixed thanks @Henry_Tao :folded_hands:

1 Like