mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore: remove previous IonRouterOutlet implementation
This commit is contained in:
@@ -49,41 +49,6 @@ const IonRouterOutletContainer = (props: PropsWithChildren<InternalProps>) => {
|
||||
);
|
||||
};
|
||||
|
||||
// class IonRouterOutletContainer extends React.Component<InternalProps, InternalState> {
|
||||
// context!: React.ContextType<typeof NavContext>;
|
||||
|
||||
// constructor(props: InternalProps) {
|
||||
// super(props);
|
||||
// }
|
||||
|
||||
// render() {
|
||||
// const StackManager = this.context.getStackManager();
|
||||
// const { children, forwardedRef, ...props } = this.props;
|
||||
|
||||
// return this.context.hasIonicRouter() ? (
|
||||
// props.ionPage ? (
|
||||
// <OutletPageManager StackManager={StackManager} routeInfo={this.context.routeInfo} {...props}>
|
||||
// {children}
|
||||
// </OutletPageManager>
|
||||
// ) : (
|
||||
// <StackManager routeInfo={this.context.routeInfo}>
|
||||
// <IonRouterOutletInner {...props} forwardedRef={forwardedRef}>
|
||||
// {children}
|
||||
// </IonRouterOutletInner>
|
||||
// </StackManager>
|
||||
// )
|
||||
// ) : (
|
||||
// <IonRouterOutletInner ref={forwardedRef} {...this.props}>
|
||||
// {this.props.children}
|
||||
// </IonRouterOutletInner>
|
||||
// );
|
||||
// }
|
||||
|
||||
// static get contextType() {
|
||||
// return NavContext;
|
||||
// }
|
||||
// }
|
||||
|
||||
export const IonRouterOutlet = createForwardRef<Props & IonicReactProps, HTMLIonRouterOutletElement>(
|
||||
IonRouterOutletContainer,
|
||||
'IonRouterOutlet'
|
||||
|
||||
Reference in New Issue
Block a user