@ionic/react 8.5.5-dev.11744290727.1ac111ca → 8.5.5-dev.11744378002.17d575c2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -95,6 +95,7 @@ import { defineCustomElement as defineCustomElement$1f } from '@ionic/core/compo
95
95
  import { defineCustomElement as defineCustomElement$1e } from '@ionic/core/components/ion-tab-button.js';
96
96
  import { defineCustomElement as defineCustomElement$1g } from '@ionic/core/components/ion-tabs.js';
97
97
  import { defineCustomElement as defineCustomElement$1k } from 'ionicons/components/ion-icon.js';
98
+ import { printIonWarning, printIonError } from '@ionic/core';
98
99
 
99
100
  const IonLifeCycleContext = /*@__PURE__*/ React.createContext({
100
101
  onIonViewWillEnter: () => {
@@ -1775,7 +1776,7 @@ class IonIconContainer extends React.PureComponent {
1775
1776
  constructor(props) {
1776
1777
  super(props);
1777
1778
  if (this.props.name) {
1778
- console.warn('In Ionic React, you import icons from "ionicons/icons" and set the icon you imported to the "icon" property. Setting the "name" property has no effect.');
1779
+ printIonWarning('In Ionic React, you import icons from "ionicons/icons" and set the icon you imported to the "icon" property. Setting the "name" property has no effect.');
1779
1780
  }
1780
1781
  }
1781
1782
  render() {
@@ -1806,7 +1807,7 @@ class IonRoute extends React.PureComponent {
1806
1807
  render() {
1807
1808
  const IonRouteInner = this.context.getIonRoute();
1808
1809
  if (!this.context.hasIonicRouter() || !IonRoute) {
1809
- console.error('You either do not have an Ionic Router package, or your router does not support using <IonRoute>');
1810
+ printIonError('You either do not have an Ionic Router package, or your router does not support using <IonRoute>');
1810
1811
  return null;
1811
1812
  }
1812
1813
  return jsx(IonRouteInner, { ...this.props });
@@ -1820,7 +1821,7 @@ class IonRedirect extends React.PureComponent {
1820
1821
  render() {
1821
1822
  const IonRedirectInner = this.context.getIonRedirect();
1822
1823
  if (!this.context.hasIonicRouter() || !IonRedirect) {
1823
- console.error('You either do not have an Ionic Router package, or your router does not support using <IonRedirect>');
1824
+ printIonError('You either do not have an Ionic Router package, or your router does not support using <IonRedirect>');
1824
1825
  return null;
1825
1826
  }
1826
1827
  return jsx(IonRedirectInner, { ...this.props });