Commit 0468b72
authored
fix(cli-tutor): wrap async resource reducer instead of replacing it (#2478)
the custom reducer used state={} as default, losing fields like
errorTimes that createAsyncResourceBundle's auto-generated selectors
expect. this caused "can't access property 'slice', resource.errorTimes
is undefined" crash when localStorage.debug is set (redux-bundler debug
mode evaluates all selectors on startup).
follow the same pattern as peers.js: delegate to the original reducer
and layer custom actions on top.1 parent 9db5775 commit 0468b72
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
29 | 39 | | |
30 | | - | |
| 40 | + | |
31 | 41 | | |
32 | 42 | | |
33 | | - | |
| 43 | + | |
34 | 44 | | |
35 | 45 | | |
36 | | - | |
| 46 | + | |
37 | 47 | | |
38 | 48 | | |
39 | | - | |
| 49 | + | |
40 | 50 | | |
41 | 51 | | |
42 | 52 | | |
| |||
0 commit comments