Skip to content

Commit

Permalink
feat(admin-ui): Export useDataService hook
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisvigoureux committed Nov 2, 2023
1 parent 096d631 commit 1007afa
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 1007afa

Please sign in to comment.