mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
🔒 fix: Robust Cache Reset on User Logout (#1324)
* refactor(Logout): rely on hooks for mutation behavior * fix: logging out now correctly resets cache, disallowing any cache mixing between the next logged in user on the same browser * chore: remove additional localStorage values on logout
This commit is contained in:
parent
583e978a82
commit
968b8ccdbd
10 changed files with 109 additions and 90 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import * as f from './types/files';
|
||||
import * as p from './types/presets';
|
||||
import * as m from './types/mutations';
|
||||
import * as a from './types/assistants';
|
||||
import * as t from './types';
|
||||
import * as s from './schemas';
|
||||
|
|
@ -82,7 +82,7 @@ export function updatePreset(payload: s.TPreset): Promise<s.TPreset> {
|
|||
return request.post(endpoints.presets(), payload);
|
||||
}
|
||||
|
||||
export function deletePreset(arg: s.TPreset | undefined): Promise<p.PresetDeleteResponse> {
|
||||
export function deletePreset(arg: s.TPreset | undefined): Promise<m.PresetDeleteResponse> {
|
||||
return request.post(endpoints.deletePreset(), arg);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue