Created
May 3, 2018 14:58
-
-
Save kulor/cc7ede1fb83217db3b7c32a88c663171 to your computer and use it in GitHub Desktop.
Configuring a store with a persist gate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
const Loading = () => (<div>Loading...</div>) | |
const App = () => { | |
return ( | |
<Provider store={store}> | |
<PersistGate loading={<Loading />} persistor={persistor}> | |
<RootComponent /> | |
</PersistGate> | |
</Provider> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment