refactor: consolidate public chat snapshot mutations with cache invalidation

This commit is contained in:
CREDO23 2026-02-02 16:47:23 +02:00
parent 67f797232e
commit ee56334abe
5 changed files with 41 additions and 35 deletions

View file

@ -83,6 +83,7 @@ export const cacheKeys = {
byToken: (shareToken: string) => ["public-chat", shareToken] as const,
},
publicChatSnapshots: {
all: ["public-chat-snapshots"] as const,
bySearchSpace: (searchSpaceId: number) =>
["public-chat-snapshots", "search-space", searchSpaceId] as const,
},