Closed wbelk closed 2 months ago
Hi @wbelk - This is the expected behavior. The additional iframes are used to improve performance for modals in your app.
makes my debugging much more difficult
Can you share more about the issues you encountered while debugging?
How do we know which one gets targeted when calling document
, and how do we selectively target a document
in one of these 3 specific contexts?
hey @darrynten, each iframe will run scripts independently & you can select the iframe via the dropdown in a browser console here to access its runtime context
apologies if that wasn't the question you were asking – as Mitch mentioned, we append multiple iframes so when your app opens a modal, it's already in the DOM & preloaded so the content renders more quickly
The Shopify admin is loading my app into three separate iframes, causing three requests to my index route each page reload
I reached out to support and they told me to file an issue here
To me this seems like a bug and inefficient, and makes my debugging much more difficult, what am I missing?