diff --git a/packages/sanity/src/core/comments/store/useCommentsStore.ts b/packages/sanity/src/core/comments/store/useCommentsStore.ts index f53d2928e7c..2196b5e3a16 100644 --- a/packages/sanity/src/core/comments/store/useCommentsStore.ts +++ b/packages/sanity/src/core/comments/store/useCommentsStore.ts @@ -34,6 +34,7 @@ const LISTEN_OPTIONS: ListenOptions = { events: ['welcome', 'mutation', 'reconnect'], includeResult: true, visibility: 'query', + tag: 'comments-store', } export const SORT_FIELD = '_createdAt' diff --git a/packages/sanity/src/core/tasks/store/useTasksStore.ts b/packages/sanity/src/core/tasks/store/useTasksStore.ts index f91287c9a26..6451fb63ea1 100644 --- a/packages/sanity/src/core/tasks/store/useTasksStore.ts +++ b/packages/sanity/src/core/tasks/store/useTasksStore.ts @@ -23,6 +23,7 @@ const LISTEN_OPTIONS: ListenOptions = { events: ['welcome', 'mutation', 'reconnect'], includeResult: true, visibility: 'query', + tag: 'tasks-store', } export const SORT_FIELD = '_createdAt' diff --git a/packages/sanity/src/presentation/useDocumentLocations.ts b/packages/sanity/src/presentation/useDocumentLocations.ts index f6d5f2e1617..8779e13743c 100644 --- a/packages/sanity/src/presentation/useDocumentLocations.ts +++ b/packages/sanity/src/presentation/useDocumentLocations.ts @@ -55,6 +55,7 @@ function listen(id: string, fields: string[], store: DocumentStore) { const params = {id, draftId: getDraftId(id)} return store.listenQuery(query, params, { perspective: 'drafts', + tag: 'drafts', }) as Observable } diff --git a/packages/sanity/src/structure/panes/documentList/listenSearchQuery.ts b/packages/sanity/src/structure/panes/documentList/listenSearchQuery.ts index 10d8e713f7e..4db3451353d 100644 --- a/packages/sanity/src/structure/panes/documentList/listenSearchQuery.ts +++ b/packages/sanity/src/structure/panes/documentList/listenSearchQuery.ts @@ -74,6 +74,7 @@ export function listenSearchQuery(options: ListenQueryOptions): Observable { diff --git a/packages/sanity/src/structure/panes/documentList/sheetList/useDocumentSheetListStore.ts b/packages/sanity/src/structure/panes/documentList/sheetList/useDocumentSheetListStore.ts index aa6327873a3..1d56198758c 100644 --- a/packages/sanity/src/structure/panes/documentList/sheetList/useDocumentSheetListStore.ts +++ b/packages/sanity/src/structure/panes/documentList/sheetList/useDocumentSheetListStore.ts @@ -105,6 +105,7 @@ const LISTEN_OPTIONS: ListenOptions = { events: ['welcome', 'mutation', 'reconnect'], includeResult: true, visibility: 'query', + tag: 'document-sheet-list-store', } /**