Skip to content

Commit

Permalink
chore(admin-ui): Export useDataService hook (#2502)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisvigoureux authored Nov 3, 2023
1 parent 096d631 commit ec4f68d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec4f68d

Please sign in to comment.