fix: do not persist active chat id (#927)

add-signin-page
Meng Zhang 2023-12-01 15:36:37 +08:00 committed by GitHub
parent a4b1d75c1a
commit 8d3be2ea36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import { create } from 'zustand'
import { persist } from 'zustand/middleware'
import { nanoid } from '@/lib/utils'
const excludeFromState = ['_hasHydrated', 'setHasHydrated']
const excludeFromState = ['_hasHydrated', 'setHasHydrated', "activeChatId"]
export interface ChatState {
chats: Chat[] | undefined