File tree Expand file tree Collapse file tree 3 files changed +1
-2
lines changed
lazy-injection/kitchen-sink/src/features/counter
publish-ci/react-native/src Expand file tree Collapse file tree 3 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ const initialState: CounterSliceState = {
1414 status : "idle" ,
1515}
1616
17- // If you are not using async thunks you can use the standalone `createSlice`.
1817export const counterSlice = createAppSlice ( {
1918 name : "counter" ,
2019 // `createSlice` will infer the state type from the `initialState` argument
Original file line number Diff line number Diff line change 11import { asyncThunkCreator , buildCreateSlice } from "@reduxjs/toolkit"
22
33// `buildCreateSlice` allows us to create a slice with async thunks.
4+ // If you are not using async thunks you can use the standalone `createSlice`.
45export const createAppSlice = buildCreateSlice ( {
56 creators : { asyncThunk : asyncThunkCreator } ,
67} )
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ const initialState: CounterSliceState = {
1313 status : "idle" ,
1414}
1515
16- // If you are not using async thunks you can use the standalone `createSlice`.
1716export const counterSlice = createAppSlice ( {
1817 name : "counter" ,
1918 // `createSlice` will infer the state type from the `initialState` argument
You can’t perform that action at this time.
0 commit comments