From 39b6f63d322a6f2fa2a552ff5cbf84d5c29e4083 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Tue, 5 Mar 2024 09:49:28 +0000 Subject: [PATCH] perf(vue): remove raf for showing entering view --- packages/vue/src/components/IonRouterOutlet.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/vue/src/components/IonRouterOutlet.ts b/packages/vue/src/components/IonRouterOutlet.ts index 1c32de13c0..73ac5a766a 100644 --- a/packages/vue/src/components/IonRouterOutlet.ts +++ b/packages/vue/src/components/IonRouterOutlet.ts @@ -420,13 +420,9 @@ See https://ionicframework.com/docs/vue/navigation#ionpage for more information. } else { /** * If there is no leaving element, just show - * the entering element. Wrap it in an raf - * in case ion-content's fullscreen callback - * is running. Otherwise we'd have a flicker. + * the entering element. */ - requestAnimationFrame(() => - enteringEl.classList.remove("ion-page-invisible") - ); + enteringEl.classList.remove("ion-page-invisible"); } fireLifecycle(