Skip to content

Commit 2bfe54b

Browse files
committed
rm duplicate example
1 parent b972fcd commit 2bfe54b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

docs/api/createSlice.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,15 +301,11 @@ reducers: (create) => {
301301
302302
return {
303303
fetchTodo: createAThunk<Todo, string>(async (id, thunkApi) => {
304-
const state = thunkApi.getState() as RootState
305-
const dispatch = thunkApi.dispatch as AppDispatch
306304
throw thunkApi.rejectWithValue({
307305
error: 'Oh no!',
308306
})
309307
}),
310308
fetchTodos: createAThunk<Todo[], string>(async (id, thunkApi) => {
311-
const state = thunkApi.getState() as RootState
312-
const dispatch = thunkApi.dispatch as AppDispatch
313309
throw thunkApi.rejectWithValue({
314310
error: 'Oh no, not again!',
315311
})

0 commit comments

Comments
 (0)