Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit97b23ba

Browse files
committed
#000 okan replace remaining object.assign function
1 parentf3e8684 commit97b23ba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"redux-ts",
3-
"version":"1.1.3",
3+
"version":"1.1.4",
44
"description":"Utils to define redux reducer/action in typescript",
55
"main":"dist/index.js",
66
"typings":"dist/index.d.ts",

‎src/utils/reducerBuilder.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class ReducerBuilder<State> {
2929
if(!mergeToState){
3030
returnnextState;
3131
}
32-
returnObject.assign({},state,nextState);
32+
return_.merge({},state,nextState);
3333
}
3434

3535
returnstate;

‎src/utils/storeBuilder.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class StoreBuilder {
3636
}
3737

3838
publicwithReducersMap(reducers:ReducersMapObject){
39-
this.reducers=_.merge({},reducers);
39+
this.reducers=_.merge({},this.reducers,reducers);
4040
returnthis;
4141
}
4242

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp