We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 394a671 + f5ca330 commit 6582910Copy full SHA for 6582910
src/Redux.js
@@ -3,12 +3,12 @@ import composeStores from './utils/composeStores';
3
import thunkMiddleware from './middleware/thunk';
4
5
export default class Redux {
6
- constructor(dispatcher, initialState) {
7
- let finalDispatcher = dispatcher;
8
- if (typeof dispatcher === 'object') {
+ constructor(dispatcherOrStores, initialState) {
+ let finalDispatcher = dispatcherOrStores;
+ if (typeof dispatcherOrStores === 'object') {
9
// A shortcut notation to use the default dispatcher
10
finalDispatcher = createDispatcher(
11
- composeStores(dispatcher),
+ composeStores(dispatcherOrStores),
12
(getState) => [thunkMiddleware(getState)]
13
);
14
}
0 commit comments