Skip to content

Commit b5a2e80

Browse files
christopherthielenmergify[bot]
authored andcommitted
feat(hooks): export useParentView for use in uirouter/react-hybrid
1 parent 623938c commit b5a2e80

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/hooks/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99
export { useCurrentStateAndParams } from './useCurrentStateAndParams';
1010
export { useOnStateChanged } from './useOnStateChanged';
11+
export { useParentView } from './useParentView';
1112
export { useRouter } from './useRouter';
1213
export { useSref } from './useSref';
1314
export { useSrefActive } from './useSrefActive';

src/hooks/useParentView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useContext, useMemo } from 'react';
44
import { UIViewAddress, UIViewContext } from '../components';
55
import { useRouter } from './useRouter';
66

7-
/** Gets the parent UIViewAddress from context, or the root UIViewAddress */
7+
/** @internalapi Gets the parent UIViewAddress from context, or the root UIViewAddress */
88
export function useParentView(): UIViewAddress {
99
const router = useRouter();
1010
const parentUIViewContext: UIViewAddress = useContext(UIViewContext);

0 commit comments

Comments
 (0)