optimize convo paginations

This commit is contained in:
Danny Avila 2023-03-06 08:58:52 -05:00
parent c617b15bcd
commit 6ae154cc42
3 changed files with 17 additions and 10 deletions

View file

@ -27,8 +27,10 @@ const currentSlice = createSlice({
},
incrementPage: (state) => {
state.pageNumber = state.pageNumber + 1;
}
// setConvos: (state, action) => state.convos = action.payload,
},
setConvos: (state, action) => {
state.convos = [...state.convos, ...action.payload];
},
}
});