feat(chat): resume chat stream
This commit is contained in:
parent
29e8b2d6fb
commit
54ffd65e10
|
|
@ -36,6 +36,7 @@ export class ChatSliceActions {
|
|||
private params: Parameters<StateCreator<ChatSlice, [], [], ChatSlice>>,
|
||||
private chatInstance: ZustandChat,
|
||||
) {
|
||||
this.chatInstance.resumeStream()
|
||||
return autoBindThis(this)
|
||||
}
|
||||
|
||||
|
|
@ -280,6 +281,7 @@ export class ChatSliceActions {
|
|||
chatInstance: newChatInstance,
|
||||
}))
|
||||
|
||||
newChatInstance.resumeStream()
|
||||
// Update the reference
|
||||
this.chatInstance = newChatInstance
|
||||
} catch (error) {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ interface EntryContentFallbackProps {
|
|||
* 3. Error boundary for entry not found cases
|
||||
*/
|
||||
export const EntryContentFallback = memo(({ entryId, children }: EntryContentFallbackProps) => {
|
||||
const { data: realEntry, isLoading: loadingRemoteEntry } = usePrefetchEntryDetail(entryId)
|
||||
const { data: realEntry, isPending: loadingRemoteEntry } = usePrefetchEntryDetail(entryId)
|
||||
|
||||
if (!loadingRemoteEntry && !realEntry) {
|
||||
// 404
|
||||
|
|
|
|||
Loading…
Reference in New Issue