Skip to content

Commit f32b36a

Browse files
docs(redux): replace patchState with updateState
1 parent cb3e30e commit f32b36a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/with-redux.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const FlightStore = signalStore(
3131
},
3232
reducer(actions, on) {
3333
on(actions.loaded, ({ flights }, state) => {
34-
patchState(state, 'flights loaded', { flights });
34+
updateState(state, 'flights loaded', { flights });
3535
});
3636
},
3737
effects(actions, create) {
@@ -82,11 +82,11 @@ const actions = {
8282
// this can be in a separate file
8383
const reducer = createReducer<FlightState, typeof actions>((actions, on) => {
8484
on(actions.updateEffect1, (state, { value }) => {
85-
patchState(state, { effect1: value });
85+
updateState(state, 'update effect 1', { effect1: value });
8686
});
8787

8888
on(actions.updateEffect2, (state, { value }) => {
89-
patchState(state, { effect2: value });
89+
updateState(state, 'update effect 2', { effect2: value });
9090
});
9191
});
9292

0 commit comments

Comments
 (0)