2020-04-07 15:48:13 +02:00
|
|
|
import { InjectStoreContext } from '../store'
|
|
|
|
|
|
|
|
export default function App({ Component, pageProps }) {
|
|
|
|
// If your page has Next.js data fetching methods returning a state for the Mobx store,
|
|
|
|
// then you can hydrate it here.
|
|
|
|
return (
|
|
|
|
<InjectStoreContext initialData={pageProps.initialStoreData}>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</InjectStoreContext>
|
|
|
|
)
|
2019-03-16 16:47:28 +01:00
|
|
|
}
|