|
@@ -1,19 +1,28 @@
|
|
import {createStore, combineReducers, applyMiddleware} from 'redux'
|
|
import {createStore, combineReducers, applyMiddleware} from 'redux'
|
|
import thunk from 'redux-thunk'
|
|
import thunk from 'redux-thunk'
|
|
-import {promiseReducer} from './promiseReducer'
|
|
|
|
-import {authReducer} from './authReducer'
|
|
|
|
-import {chatsReducer} from './chatsReducer'
|
|
|
|
|
|
+import {promiseReducer} from '../reducers'
|
|
|
|
+import {authReducer} from '../reducers'
|
|
|
|
+import {chatsReducer} from '../reducers'
|
|
|
|
+import {localStoredReducer} from '../reducers'
|
|
|
|
+
|
|
import {actionAboutMe} from '../actions'
|
|
import {actionAboutMe} from '../actions'
|
|
|
|
+import * as shoto from '../actions'
|
|
|
|
+
|
|
|
|
+console.log(shoto)
|
|
|
|
+// console.log(Object.entries(shoto))
|
|
|
|
+// debugger;
|
|
|
|
|
|
|
|
+export const store = createStore ( combineReducers({
|
|
|
|
+ promise: promiseReducer,
|
|
|
|
+ auth: authReducer,
|
|
|
|
+ chats: chatsReducer
|
|
|
|
+ }),
|
|
|
|
+ applyMiddleware(thunk)
|
|
|
|
+ )
|
|
|
|
+console.log(store)
|
|
|
|
|
|
-export const store = createStore ( combineReducers({
|
|
|
|
- promise: promiseReducer,
|
|
|
|
- auth: authReducer,
|
|
|
|
- chats: chatsReducer
|
|
|
|
- }),
|
|
|
|
- applyMiddleware(thunk)
|
|
|
|
- )
|
|
|
|
-// actionAboutMe()
|
|
|
|
|
|
+setTimeout(() => store.dispatch(actionAboutMe()), 0)
|
|
|
|
+// store.dispatch(actionAboutMe())
|
|
|
|
|
|
store.subscribe(() => console.log(store.getState()))
|
|
store.subscribe(() => console.log(store.getState()))
|
|
|
|
|