From c8bdd9e444eac1de676e0ce3672e7a03dbf87e05 Mon Sep 17 00:00:00 2001 From: dm1sh Date: Sat, 30 Oct 2021 12:43:19 +0300 Subject: [PATCH] Fixed hydrate action typing --- src/store/slices/todo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/slices/todo.ts b/src/store/slices/todo.ts index 6f7fb8c..7eead3e 100644 --- a/src/store/slices/todo.ts +++ b/src/store/slices/todo.ts @@ -10,7 +10,7 @@ export const todoSlice = createSlice({ name: "todo", initialState: initialState, reducers: { - hydrate: (state, { payload }) => { + hydrate: (state, { payload }: PayloadAction) => { state.tasks = payload; }, add: (state, { payload }: PayloadAction) => {