Skip to content

Commit

Permalink
chore: πŸ€– export react-query client instance with shared provide
Browse files Browse the repository at this point in the history
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
  • Loading branch information
M1r1k committed Dec 3, 2024
1 parent b533366 commit 33d5724
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/reference/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 33d5724

Please sign in to comment.