You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
A bunch of apps are utilizing quilt/react-shopify-app-route-propagator to synchronize the app's url with the browser url. This package relies on the iframe name in order to skip the url synch when rendered in modal.
Iframe names are being deprecated as they are unreliable, especially on Mobile, which might not render an iframe at all. It also was always an unadvertised hack added in by 1P developers.
Fix
Use app.getState('context') to figure out whether the app is rendered in a modal
@vividviolet I had chatted with @gf3 briefly before about moving both @shopify/react-shopify-app-route-propagator and @shopify/react-app-bridge-universal-provider, and this seems like a good time to do so.
I would like to suggest removing the @shopify/react-shopify-app-route-propagator package all together and move the implementation into @shopify/app-bridge-react.
@shopify/react-app-bridge-universal-provider is a bit more up to debate since it depends on @shopify/react-html
Yes, we can take the opportunity to remove this package from quilt. Maybe putting in @shopify/app-bridge-react makes sense. The only thing to note is that we do not support hooks in app-bridge-react yet.
Overview
A bunch of apps are utilizing
quilt/react-shopify-app-route-propagator
to synchronize the app's url with the browser url. This package relies on the iframe name in order to skip the url synch when rendered in modal.Iframe names are being deprecated as they are unreliable, especially on Mobile, which might not render an iframe at all. It also was always an unadvertised hack added in by 1P developers.
Fix
Use
app.getState('context')
to figure out whether the app is rendered in a modalConsuming repo
The text was updated successfully, but these errors were encountered: