Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Database or disk is full (code13 SQLLIT_FULL) #64

Open
saeedtkh opened this issue Jun 10, 2022 · 0 comments
Open

Error: Database or disk is full (code13 SQLLIT_FULL) #64

saeedtkh opened this issue Jun 10, 2022 · 0 comments

Comments

@saeedtkh
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant