UNPKG

rtk-ready

Version:

Redux utilities package for a boilerplate setup with persisted state, authentication handling, API integration, and typed hooks, providing a structured and scalable state management solution for React applications.

7 lines (5 loc) 237 B
// src/store/persistor.ts import { persistStore } from 'redux-persist'; import { store } from './store'; // Import the store to create the persistor // Create and export the persistor export const persistor = persistStore(store);