File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export const FlightStore = signalStore(
31
31
},
32
32
reducer(actions , on ) {
33
33
on (actions .loaded , ({ flights }, state ) => {
34
- patchState (state , ' flights loaded' , { flights });
34
+ updateState (state , ' flights loaded' , { flights });
35
35
});
36
36
},
37
37
effects(actions , create ) {
@@ -82,11 +82,11 @@ const actions = {
82
82
// this can be in a separate file
83
83
const reducer = createReducer <FlightState , typeof actions >((actions , on ) => {
84
84
on (actions .updateEffect1 , (state , { value }) => {
85
- patchState (state , { effect1: value });
85
+ updateState (state , ' update effect 1 ' , { effect1: value });
86
86
});
87
87
88
88
on (actions .updateEffect2 , (state , { value }) => {
89
- patchState (state , { effect2: value });
89
+ updateState (state , ' update effect 2 ' , { effect2: value });
90
90
});
91
91
});
92
92
You can’t perform that action at this time.
0 commit comments