Skip to content

Commit

Permalink
fix: cache invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
paulclindo committed Sep 21, 2024
1 parent 2d6e908 commit 7ae3b20
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions apps/shinkai-desktop/src/components/chat/message-stream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,7 @@ export const useWebSocketMessage = ({ enabled }: UseWebSocketMessage) => {
if (isStreamFinishedRef.current) {
const paginationKey = [
FunctionKey.GET_CHAT_CONVERSATION_PAGINATION,
{
nodeAddress: auth?.node_address ?? '',
inboxId: inboxId as string,
shinkaiIdentity: auth?.shinkai_identity ?? '',
profile: auth?.profile ?? '',
},
{ inboxId: inboxId as string },
];
queryClient.invalidateQueries({ queryKey: paginationKey });
setTimeout(() => {
Expand Down

0 comments on commit 7ae3b20

Please sign in to comment.