mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-22 02:06:12 +01:00
optimize convo paginations
This commit is contained in:
parent
c617b15bcd
commit
6ae154cc42
3 changed files with 17 additions and 10 deletions
|
|
@ -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];
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue