Skip to content

Instantly share code, notes, and snippets.

@kulor
Created May 3, 2018 14:58
Show Gist options
  • Save kulor/cc7ede1fb83217db3b7c32a88c663171 to your computer and use it in GitHub Desktop.
Save kulor/cc7ede1fb83217db3b7c32a88c663171 to your computer and use it in GitHub Desktop.
Configuring a store with a persist gate
...
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