-
Notifications
You must be signed in to change notification settings - Fork 721
Open
Description
Overview
What's the recommended way of handling the case where a user hits the "reload" button on their browser? When this happens the host param is missing (which is provided by Shopify when someone first navigates to the app) and then the call to createApp (from @shopify/app-bridge fails) with a complaint about host missing.
11:04:50.219 Uncaught (in promise)
Object { name: "AppBridgeError", message: "APP::ERROR::INVALID_CONFIG: host must be provided", stack: "AppBridgeError@https://ga.jspm.io/npm:@shopify/app-bridge-core@1.0.1/actions/Error/index.js:1:1675\nfromAction@https://ga.jspm.io/npm:@shopify/app-bridge-core@1.0.1/actions/Error/index.js:1:1844\nvalidateAndDecodeConfig@https://ga.jspm.io/npm:@shopify/app-bridge@3.7.4/index.js:5:4112\ncreateClientApp$1/<@https://ga.jspm.io/npm:@shopify/app-bridge@3.7.4/index.js:5:2733\ncreateApp$1@https://ga.jspm.io/npm:@shopify/app-bridge@3.7.4/index.js:12:89\ninitShopifyApp@https://crowdfunder-octolabs.ngrok.io/assets/superliner/shopify_app-4337f031.js:187:16\ninitPage@https://crowdfunder-octolabs.ngrok.io/assets/superliner/shopify_app-4337f031.js:243:9\n@https://crowdfunder-octolabs.ngrok.io/assets/superliner/shopify_app-4337f031.js:258:3\n", action: undefined, type: "APP::ERROR::INVALID_CONFIG" }
shopify_app-4337f031.js:243:9
Possibly related to: #1768
Possibly moot if a splash page really isn't needed anymore: #1946
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels