Skip to content

Commit

Permalink
Create store.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 10, 2024
1 parent c64df0c commit 13a3088
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions blockchain_integration/pi_network/PiFusion/store.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { configureStore } from '@reduxjs/toolkit';
import { createLogger } from 'redux-logger';
import thunkMiddleware from 'redux-thunk';
import { nodeReducer } from './reducers/nodeReducer';
import { authReducer } from './reducers/authReducer';
import { dataReducer } from './reducers/dataReducer';

const logger = createLogger({
level: 'info',
collapsed: true,
});

const store = configureStore({
reducer: {
nodes: nodeReducer,
auth: authReducer,
data: dataReducer,
},
middleware: [thunkMiddleware, logger],
devTools: process.env.NODE_ENV !== 'production',
});

export default store;

0 comments on commit 13a3088

Please sign in to comment.