Skip to content

Commit

Permalink
fix: pass model name to createReducer
Browse files Browse the repository at this point in the history
  • Loading branch information
wxnet2013 committed Sep 8, 2018
1 parent bd8f3e9 commit 5995e7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rxloop.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function rxloop( config = {} ) {
this._stream[name][`reducer_${type}$`]
.pipe(
map(action => {
return this.createReducer(action, reducers[type]);
return this.createReducer(action, reducers[type], name);
}),
)
// 将同步计算结果推送出去
Expand Down Expand Up @@ -103,7 +103,7 @@ export function rxloop( config = {} ) {
model: name,
epic: type,
});
return this.createReducer(action, reducers[reducer]);
return this.createReducer(action, reducers[reducer], name);
}),
catchError((error) => {
option.onError({
Expand Down

0 comments on commit 5995e7b

Please sign in to comment.