refactor convos fetching to nav components, results in faster loading

This commit is contained in:
Danny Avila 2023-02-14 16:15:45 -05:00
parent e4d1ff2523
commit 742073fb89
8 changed files with 389 additions and 286 deletions

View file

@ -5,7 +5,7 @@ const initialState = {
title: 'ChatGPT Clone',
conversationId: null,
parentMessageId: null,
convos: [],
// convos: [],
convosLoading: false,
};
@ -19,7 +19,7 @@ const currentSlice = createSlice({
setError: (state, action) => {
state.error = action.payload;
},
setConvos: (state, action) => state.convos = action.payload,
// setConvos: (state, action) => state.convos = action.payload,
}
});