Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

redux toolkit with redux persist

import store from './app/store';
import { PersistGate } from 'redux-persist/integration/react'
import { persistStore } from 'redux-persist'

let persistor = persistStore(store);

    <Provider store={store}>
        <PersistGate loading={null} persistor={persistor}>
        <App/>
        </PersistGate>
    </Provider>,
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #redux #toolkit #redux #persist
ADD COMMENT
Topic
Name
8+7 =