From 8c677c29cd84c14a93620a9bf0b9f9504da15e1d Mon Sep 17 00:00:00 2001 From: Pedro Bonamin <46196328+pedrobonamin@users.noreply.github.com> Date: Mon, 23 Sep 2024 15:52:31 +0200 Subject: [PATCH] fix(core): document store cache memo not working (#7530) --- 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, })