Answers for "redux toolkit how to set empty initial state"

0

redux toolkit how to set empty initial state

const intialState = {
  returned: []
}

const showOnReviewSlice = createSlice({
    name: 'showOnReview',
    initialState,
    reducers: {
        reset: state => initialState
    }
});
Posted by: Guest on June-30-2021

Code answers related to "redux toolkit how to set empty initial state"

Code answers related to "Javascript"

Browse Popular Code Answers by Language