diff --git a/.changeset/loud-horses-rush.md b/.changeset/loud-horses-rush.md new file mode 100644 index 00000000..23ea588c --- /dev/null +++ b/.changeset/loud-horses-rush.md @@ -0,0 +1,5 @@ +--- +"@tinloof/sanity-studio": patch +--- + +Navigator hotfix diff --git a/packages/sanity-studio/src/plugins/navigator/utils/index.tsx b/packages/sanity-studio/src/plugins/navigator/utils/index.tsx index d9c1cc10..43274634 100644 --- a/packages/sanity-studio/src/plugins/navigator/utils/index.tsx +++ b/packages/sanity-studio/src/plugins/navigator/utils/index.tsx @@ -25,8 +25,9 @@ export const useSanityFetch = ({ documentStore.listenQuery(query, variables, { perspective: "previewDrafts", }), - [documentStore, query, variables], - ), + // eslint-disable-next-line react-hooks/exhaustive-deps + [documentStore] + ) ); const loading = subscribe === undefined; @@ -155,7 +156,7 @@ export function createPageTemplates(creatablePages: NormalizedCreatablePage[]) { } export function normalizeCreatablePages( - creatablePageTypes: PagesNavigatorPluginOptions["creatablePages"], + creatablePageTypes: PagesNavigatorPluginOptions["creatablePages"] ): NormalizedCreatablePage[] { return ( creatablePageTypes?.map((page) => {