@ionic/react 9.0.7-dev.11790871695.14a4111c → 9.0.7-dev.11790887756.13f9320e
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 +2 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2193,13 +2193,7 @@ class OutletPageManager extends React.Component {
|
|
|
2193
2193
|
* when React unmounts + remounts components.
|
|
2194
2194
|
*/
|
|
2195
2195
|
if (!this.outletIsReady) {
|
|
2196
|
-
|
|
2197
|
-
componentOnReady(el, () => {
|
|
2198
|
-
/**
|
|
2199
|
-
* The outlet can unmount before this fires, which clears the ref.
|
|
2200
|
-
*/
|
|
2201
|
-
if (this.ionRouterOutlet !== el)
|
|
2202
|
-
return;
|
|
2196
|
+
componentOnReady(this.ionRouterOutlet, () => {
|
|
2203
2197
|
/**
|
|
2204
2198
|
* Guard against duplicate callbacks from React strict mode double-mount.
|
|
2205
2199
|
* Both componentDidMount calls pass the outer !outletIsReady check before
|
|
@@ -2218,6 +2212,7 @@ class OutletPageManager extends React.Component {
|
|
|
2218
2212
|
* outlet's forward animation removes ion-page-invisible, preventing
|
|
2219
2213
|
* a flash where the outlet is briefly visible at full opacity.
|
|
2220
2214
|
*/
|
|
2215
|
+
const el = this.ionRouterOutlet;
|
|
2221
2216
|
if (!el.classList.contains('ion-page-invisible') && !el.classList.contains('ion-page-hidden')) {
|
|
2222
2217
|
el.classList.add('ion-page');
|
|
2223
2218
|
el.classList.add('ion-page-invisible');
|