Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore(channel): remove placeholderData from channel messages query (#4351)

gbirman730ee5706839
diff --git a/js/app/packages/queries/channel/channel-messages.ts b/js/app/packages/queries/channel/channel-messages.ts
index efedbf29a8..d9a0a4d25b 100644
--- a/js/app/packages/queries/channel/channel-messages.ts
+++ b/js/app/packages/queries/channel/channel-messages.ts
@@ -84,11 +84,6 @@ export function channelMessagesQueryOptions(
);
return normalizeChannelMessagesPageSenders(page);
},
- placeholderData: (
- prev: ChannelMessagesData | undefined,
- prevQuery: { queryKey: ChannelMessagesQueryKey } | undefined
- ): ChannelMessagesData | undefined =>
- prevQuery?.queryKey.includes(channelId) ? prev : undefined,
initialPageParam: null as ChannelMessagesPageParam | null,
getNextPageParam: (lastPage: ChannelMessagesPage) =>
lastPage.next_cursor