Closed rimsila closed 4 years ago
` export default class MyApp extends App { static async getInitialProps({ Component, ctx }) { const pageProps = Component.getInitialProps ? await Component.getInitialProps(ctx) : {}; return { pageProps }; }
render() {
const { Component, pageProps } = this.props; return ( <Container> <Provider store={store}> <PersistGate loading={<LoadingSpinner />} persistor={persistor}> <CustomErrorBoundary> <Component {...pageProps} /> </CustomErrorBoundary> </PersistGate> </Provider> </Container> );
} } `
` export default class MyApp extends App { static async getInitialProps({ Component, ctx }) { const pageProps = Component.getInitialProps ? await Component.getInitialProps(ctx) : {}; return { pageProps }; }
render() {
} } `