How to add Loading Component in shopify embedded app?

Solved
abhinavp00719
Shopify Partner
28 2 18

Hello!

I am building a Shopify App using the React and Polaris.

And I cannot figure out how should I add Loading Polaris Component to my app.

I have this in my _app.js file

class MyApp extends App {
...
const { Component, pageProps } = this.props
...
<AppProvider shopOrigin={this.state.shopOrigin} apiKey = { API_KEY } forceRedirect > <Component {...pageProps} /> </AppProvider>
...

And when I try to add Loading component to AppProvider then it says that AppProvider takes only one Children.

So How can I add Loading component to

<Component {...pageProps} />

Btw I am following official Shopify app tutorial on making app using react and node.

Founder Descrii Description Generator
Accepted Solution (1)

Accepted Solutions
abhinavp00719
Shopify Partner
28 2 18

This is an accepted solution.

Okay so... I figured this out... No Problem...

Founder Descrii Description Generator

View solution in original post

Reply 1 (1)
abhinavp00719
Shopify Partner
28 2 18

This is an accepted solution.

Okay so... I figured this out... No Problem...

Founder Descrii Description Generator