Always refetch and re-hydrate the Chat
This commit is contained in:
parent
37bec50c08
commit
357e46248e
1 changed files with 1 additions and 0 deletions
|
@ -195,6 +195,7 @@ const useChat = (chatId?: string) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
return useQuery<IChat | undefined>(ChatKeys.chat(chatId), getChat, {
|
return useQuery<IChat | undefined>(ChatKeys.chat(chatId), getChat, {
|
||||||
|
cacheTime: 0,
|
||||||
enabled: !!chatId,
|
enabled: !!chatId,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue