From 33d572443f570fae24c7d86fa68ebc684f1e0f85 Mon Sep 17 00:00:00 2001 From: Artem Miroshnyk Date: Tue, 3 Dec 2024 09:51:40 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20export=20react-query=20?= =?UTF-8?q?client=20instance=20with=20shared=20provide?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit export react-query client instance together with SharedQueryClientProvider to allow cache invalidation, cache setting, as well as reusing existing cache for entities fetching ✅ Closes: #1808 --- packages/reference/src/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/reference/src/index.tsx b/packages/reference/src/index.tsx index b5d5f6040..cd5cae0a5 100644 --- a/packages/reference/src/index.tsx +++ b/packages/reference/src/index.tsx @@ -23,7 +23,10 @@ export type { } from './common/customCardTypes'; export { SortableLinkList } from './common/SortableLinkList'; export { EntityProvider, useEntityLoader, useEntity, useResource } from './common/EntityStore'; -export { SharedQueryClientProvider as EntityCacheProvider } from './common/queryClient'; +export { + SharedQueryClientProvider as EntityCacheProvider, + useQueryClient as useEntityQueryClient, +} from './common/queryClient'; export type { ResourceInfo } from './common/EntityStore'; export { SingleResourceReferenceEditor,