redux toolkit how to set empty initial state

Solutions on MaxInterview for redux toolkit how to set empty initial state by the best coders in the world

showing results for - "redux toolkit how to set empty initial state"
Sophia
05 Sep 2016
1const intialState = {
2  returned: []
3}
4
5const showOnReviewSlice = createSlice({
6    name: 'showOnReview',
7    initialState,
8    reducers: {
9        reset: state => initialState
10    }
11});
12
similar questions