File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ import { ReactStateDeclaration } from '../interface';
2020 * ```
2121 */
2222export const UIRouterContext = React . createContext < UIRouterReact > ( undefined ) ;
23+ /** @deprecated use [[useRouter]] or React.useContext(UIRouterContext) */
24+ export const UIRouterConsumer = UIRouterContext . Consumer ;
2325
2426export interface UIRouterProps {
2527 plugins ?: Array < PluginFactory < UIRouterPlugin > > ;
Original file line number Diff line number Diff line change @@ -95,6 +95,8 @@ export const TransitionPropCollisionError =
9595
9696/** @internalapi */
9797export const UIViewContext = createContext < UIViewAddress > ( undefined ) ;
98+ /** @deprecated use [[useParentView]] or React.useContext(UIViewContext) */
99+ export const UIViewConsumer = UIViewContext . Consumer ;
98100
99101/** @hidden */
100102function useResolvesWithStringTokens ( resolveContext : ResolveContext , injector : UIInjector ) {
You can’t perform that action at this time.
0 commit comments