feat(react): React Router Enhancements (#21693)

This commit is contained in:
Ely Lucas
2020-07-07 11:02:05 -06:00
committed by GitHub
parent a0735b97bf
commit c171ccbd37
245 changed files with 26872 additions and 1126 deletions

View File

@ -0,0 +1,13 @@
import React from 'react';
import { RouteInfo } from '../models/RouteInfo';
export interface StackContextState {
registerIonPage: (page: HTMLElement, routeInfo: RouteInfo) => void;
isInOutlet: () => boolean;
}
export const StackContext = React.createContext<StackContextState>({
registerIonPage: () => undefined,
isInOutlet: () => false
});