Skip to content

Commit

Permalink
Merge pull request #225 from codering/master
Browse files Browse the repository at this point in the history
fixed typo
  • Loading branch information
sorrycc authored Oct 31, 2016
2 parents 7e52e1b + 831b7d9 commit 065c48d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/createDva.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export default function createDva(createOpts) {
const sub = subs[key];
invariant(typeof sub === 'function', 'app.start: subscription should be function');
sub({
dispatch: createDispach(app._store.dispatch, model),
dispatch: createDispatch(app._store.dispatch, model),
history: app._history,
}, onError);
}
Expand Down Expand Up @@ -399,7 +399,7 @@ export default function createDva(createOpts) {
return { ...sagaEffects, put };
}

function createDispach(dispatch, model) {
function createDispatch(dispatch, model) {
return action => {
const { type } = action;
invariant(type, 'dispatch: action should be a plain Object with type');
Expand Down

0 comments on commit 065c48d

Please sign in to comment.