Browse Source

chore(admin-ui): Export useDataService hook (#2502)

Alexis Vigoureux 2 years ago
parent
commit
ec4f68d1db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/admin-ui/src/lib/react/src/react-hooks/use-query.ts

+ 1 - 1
packages/admin-ui/src/lib/react/src/react-hooks/use-query.ts

@@ -112,7 +112,7 @@ export function useMutation<T, V extends Record<string, any> = Record<string, an
     return [execute, rest] as [typeof execute, typeof rest];
 }
 
-function useDataService<T, V extends Record<string, any> = Record<string, any>>(
+export function useDataService<T, V extends Record<string, any> = Record<string, any>>(
     operation: (dataService: DataService, variables?: V) => Observable<T>,
 ) {
     const context = useContext(HostedComponentContext);