Exodus
For start need initialize "Redux-Exodus"#
if you need use persists function you need initialize store with exodus. For local storage on web side exodus use windows.localStorage for react-native need set storage. Currently supportet only @react-native-async-storage/async-storage
Note: For WEB project no need set
storageparam.
// Only for react-native projectsimport AsyncStorage from '@react-native-async-storage/async-storage';
Exodus.init({ store, storage: AsyncStorage,})
export default function Main() { return ( <Provider store={Exodus.defaultSettings.store}> <App /> </Provider> )}Parameters#
| Name | Required | Type | Description |
|---|---|---|---|
| Settings | false | MainSettings | Redux exodus initialize params |