Skip to content

Commit

Permalink
fix: Restore UIRouterConsumer and UIViewConsumer context consumer com…
Browse files Browse the repository at this point in the history
…ponents.
  • Loading branch information
christopherthielen authored and mergify[bot] committed Feb 4, 2020
1 parent b5a2e80 commit 3ed8ce1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/UIRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import { ReactStateDeclaration } from '../interface';
* ```
*/
export const UIRouterContext = React.createContext<UIRouterReact>(undefined);
/** @deprecated use [[useRouter]] or React.useContext(UIRouterContext) */
export const UIRouterConsumer = UIRouterContext.Consumer;

export interface UIRouterProps {
plugins?: Array<PluginFactory<UIRouterPlugin>>;
Expand Down
2 changes: 2 additions & 0 deletions src/components/UIView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ export const TransitionPropCollisionError =

/** @internalapi */
export const UIViewContext = createContext<UIViewAddress>(undefined);
/** @deprecated use [[useParentView]] or React.useContext(UIViewContext) */
export const UIViewConsumer = UIViewContext.Consumer;

/** @hidden */
function useResolvesWithStringTokens(resolveContext: ResolveContext, injector: UIInjector) {
Expand Down

0 comments on commit 3ed8ce1

Please sign in to comment.