@ionic/react 8.5.5-dev.11744378002.17d575c2 → 8.5.5-nightly.20250414
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 +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -95,7 +95,6 @@ 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';
|
|
99
98
|
|
|
100
99
|
const IonLifeCycleContext = /*@__PURE__*/ React.createContext({
|
|
101
100
|
onIonViewWillEnter: () => {
|
|
@@ -1776,7 +1775,7 @@ class IonIconContainer extends React.PureComponent {
|
|
|
1776
1775
|
constructor(props) {
|
|
1777
1776
|
super(props);
|
|
1778
1777
|
if (this.props.name) {
|
|
1779
|
-
|
|
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.');
|
|
1780
1779
|
}
|
|
1781
1780
|
}
|
|
1782
1781
|
render() {
|
|
@@ -1807,7 +1806,7 @@ class IonRoute extends React.PureComponent {
|
|
|
1807
1806
|
render() {
|
|
1808
1807
|
const IonRouteInner = this.context.getIonRoute();
|
|
1809
1808
|
if (!this.context.hasIonicRouter() || !IonRoute) {
|
|
1810
|
-
|
|
1809
|
+
console.error('You either do not have an Ionic Router package, or your router does not support using <IonRoute>');
|
|
1811
1810
|
return null;
|
|
1812
1811
|
}
|
|
1813
1812
|
return jsx(IonRouteInner, { ...this.props });
|
|
@@ -1821,7 +1820,7 @@ class IonRedirect extends React.PureComponent {
|
|
|
1821
1820
|
render() {
|
|
1822
1821
|
const IonRedirectInner = this.context.getIonRedirect();
|
|
1823
1822
|
if (!this.context.hasIonicRouter() || !IonRedirect) {
|
|
1824
|
-
|
|
1823
|
+
console.error('You either do not have an Ionic Router package, or your router does not support using <IonRedirect>');
|
|
1825
1824
|
return null;
|
|
1826
1825
|
}
|
|
1827
1826
|
return jsx(IonRedirectInner, { ...this.props });
|