mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-06 16:55:49 +00:00
Initial Commit Rework
This commit is contained in:
15
frontend/src/Store/createAppStore.js
Normal file
15
frontend/src/Store/createAppStore.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import { createStore } from 'redux';
|
||||
import reducers, { defaultState } from 'Store/Reducers';
|
||||
import middlewares from 'Store/Middleware/middlewares';
|
||||
|
||||
function createAppStore(history) {
|
||||
const appStore = createStore(
|
||||
reducers,
|
||||
defaultState,
|
||||
middlewares(history)
|
||||
);
|
||||
|
||||
return appStore;
|
||||
}
|
||||
|
||||
export default createAppStore;
|
||||
Reference in New Issue
Block a user