Skip to content

Commit 3847670

Browse files
authored
Update multi-state-and-single-state.md
1 parent a971023 commit 3847670

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

docs/advanced/multi-state-and-single-state.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ counter$.subscribe(
2121
(state) => {
2222
// this.setState(state);
2323
},
24-
(error) => {},
2524
);
2625

2726
user$.subscribe(
2827
(state) => {
2928
// this.setState(state);
3029
},
31-
(error) => {},
3230
);
3331

3432
// 还可以直接使用 stream 方法,获取单一状态树。
@@ -38,6 +36,5 @@ singleState$.subscribe(
3836
(state) => {
3937
// this.setState(state);
4038
},
41-
(error) => {},
4239
);
4340
```

0 commit comments

Comments
 (0)