diff --git a/examples/with-redux-persist/pages/_app.js b/examples/with-redux-persist/pages/_app.js index a48f78ae7bd35..99bea7d750cf8 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}>