redux-persist-filesystem-storage
redux-persist-filesystem-storage copied to clipboard
Error: Database or disk is full (code13 SQLLIT_FULL)
Hello, thanks for your nice lib! I am using the lib as the following:
import {offline} from '../../components/redux-offline';
import offlineConfig from '../../components/redux-offline/lib/defaults';
import {applyMiddleware, compose, createStore} from 'redux';
import {persistReducer, persistStore} from 'redux-persist';
import thunkMiddleware from 'redux-thunk';
import reducers from '../reducers';
import FilesystemStorage from 'redux-persist-filesystem-storage';
const enhancers = [
applyMiddleware(
thunkMiddleware,
),
];
/* eslint-disable no-undef */
const composeEnhancers =
(__DEV__ &&
typeof window !== 'undefined' &&
window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__) ||
compose;
/* eslint-enable no-undef */
const enhancer = composeEnhancers(...enhancers, offline({...offlineConfig}));
const persistConfig = {
key: 'root',
storage: FilesystemStorage,
blacklist: [],
};
const persistedReducer = persistReducer(persistConfig, reducers);
export const store = createStore(persistedReducer, {}, compose(enhancer));
export const persistor = persistStore(store);
And after sometimes that I close and open the app, I get the following error:
Error: Database or disk is full (code13 SQLLIT_FULL)