Given this
export const slice = createSlice({
name: 'reducer',
initialState: {
},
reducers: {
test: (state, action) => {
console.log(action.payload) // 1
}
},
})
then I run this
dispatch(test(1,2,3,4,5,6,7))
action.payload is only the 1st parameter. How do I get the other 6?