diff --git a/packages/react-router/src/ReactRouter/Router.tsx b/packages/react-router/src/ReactRouter/Router.tsx index 863619bb2d..742a923513 100644 --- a/packages/react-router/src/ReactRouter/Router.tsx +++ b/packages/react-router/src/ReactRouter/Router.tsx @@ -4,7 +4,7 @@ import { Action as HistoryAction, Location as HistoryLocation, UnregisterCallbac import React from 'react'; import { RouteComponentProps, matchPath, withRouter } from 'react-router-dom'; -import { generateId } from '../utils'; +import { generateId, isDevMode } from '../utils'; import { LocationHistory } from '../utils/LocationHistory'; import { IonRouteData } from './IonRouteData'; @@ -169,6 +169,18 @@ class RouteManager extends React.Component { + const { view } = this.state.viewStacks.findViewInfoById(this.activeIonPageId); + if (view!.routeData.match!.url !== location.pathname) { + console.warn('No IonPage was found to render. Make sure you wrap your page with an IonPage component.'); + } + }, 1000); + } + } } }); }