Add raw message/comment types and reduce members stale time

This commit is contained in:
CREDO23 2026-01-21 17:58:17 +02:00
parent 3765d0a868
commit 73ff261194
3 changed files with 31 additions and 1 deletions

View file

@ -9,7 +9,7 @@ export const membersAtom = atomWithQuery((get) => {
return {
queryKey: cacheKeys.members.all(searchSpaceId?.toString() ?? ""),
enabled: !!searchSpaceId,
staleTime: 5 * 60 * 1000, // 5 minutes
staleTime: 3 * 1000, // 3 seconds - short staleness for live collaboration
queryFn: async () => {
if (!searchSpaceId) {
return [];