Storage adapter for redux-persist that uses cordova-sqlite-storage to persist Redux state in Cordova-based mobile apps. Version 1.0.0 is the current stable release; the package has low release cadence. Provides a simple sqlLiteStorage() factory that returns a storage object compatible with redux-persist's persistConfig. Alternative to redux-persist's default localStorage or AsyncStorage for Cordova apps. Requires peer dependency cordova-sqlite-storage ^4.0.0. Note: the package has not been updated since 2019 and there is no ESM support.
npm install redux-persist-cordova-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure redux-persist with the SQLite storage adapter in a Cordova app.
Test with your specific versions or consider using a more actively maintained storage adapter.
Ensure you are running in a Cordova app with cordova-sqlite-storage installed via: cordova plugin add cordova-sqlite-storage
Install cordova-sqlite-storage plugin and wait for deviceready event before using sqlLiteStorage.
Run: npm install cordova-sqlite-storage
Use import { sqlLiteStorage } from 'redux-persist-cordova-sqlite' or const { sqlLiteStorage } = require('redux-persist-cordova-sqlite')