diff --git a/examples/with-redux-persist/pages/_app.js b/examples/with-redux-persist/pages/_app.js index a48f78ae7bd357bee6b55f03d74d78746f0000c8..99bea7d750cf810cf23312352650bcc6a6cf2286 100644 --- a/examples/with-redux-persist/pages/_app.js +++ b/examples/with-redux-persist/pages/_app.js @@ -5,11 +5,13 @@ import { PersistGate } from 'redux-persist/integration/react' export default function App({ Component, pageProps }) { const store = useStore(pageProps.initialReduxState) - const persistor = persistStore(store) + const persistor = persistStore(store, {}, function () { + persistor.persist() + }) return ( - } persistor={persistor}> + loading} persistor={persistor}>