feat(ManualJournals): Auto-increment.

fix(BillPayment): Validate the opened payment bills.
fix(redux): presist redux state.
fix(useRequestQuery): hook.
This commit is contained in:
a.bouhuolia
2021-03-18 14:23:37 +02:00
parent 4e8bdee97a
commit 9ff8e3159d
79 changed files with 1326 additions and 889 deletions

View File

@@ -4,7 +4,7 @@ import {
compose,
} from 'redux';
import thunkMiddleware from 'redux-thunk';
import { persistStore, persistReducer } from 'redux-persist';
import { persistStore, persistReducer, purgeStoredState } from 'redux-persist';
import storage from 'redux-persist/lib/storage';
import monitorReducerEnhancer from 'store/enhancers/monitorReducer';
import loggerMiddleware from 'middleware/logger';
@@ -44,7 +44,7 @@ const createStoreFactory = (initialState = {}) => {
|--------------------------------------------------
*/
const store = createReduxStore(
persistReducer(persistConfig, rootReducer),
rootReducer,
initialState,
composeEnhancers(applyMiddleware(...middleware), ...enhancers),
);