From 580630d1f9b709d79ae801ea4e80f29ac494c71e Mon Sep 17 00:00:00 2001 From: pedrobonamin Date: Fri, 20 Sep 2024 08:51:04 +0200 Subject: [PATCH] fix(core): document store cache memo not working --- packages/sanity/src/core/store/_legacy/datastores.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sanity/src/core/store/_legacy/datastores.ts b/packages/sanity/src/core/store/_legacy/datastores.ts index c86b76bcede..7ffdb613093 100644 --- a/packages/sanity/src/core/store/_legacy/datastores.ts +++ b/packages/sanity/src/core/store/_legacy/datastores.ts @@ -159,7 +159,7 @@ export function useDocumentStore(): DocumentStore { resourceCache.set({ namespace: 'documentStore', - dependencies: [getClient, documentPreviewStore, historyStore, schema, i18n], + dependencies: [getClient, documentPreviewStore, historyStore, schema, i18n, workspace], value: documentStore, })