From 5e7c2864540084e9dfde2257198361cc510930d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20K=C3=A4gy?= Date: Fri, 28 Feb 2025 09:30:23 +0100 Subject: [PATCH] Revert "Feature: Add `navigation.isLoading` state to core/router store (#67680)" (#69330) This reverts commit e85937ff6868a4b35856845755636c39dbbc555a. Co-authored-by: fabiankaegy Co-authored-by: Mamaduka Co-authored-by: luisherranz --- packages/interactivity-router/src/index.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/interactivity-router/src/index.ts b/packages/interactivity-router/src/index.ts index d23a1e644f5be..b26fc79be4fb6 100644 --- a/packages/interactivity-router/src/index.ts +++ b/packages/interactivity-router/src/index.ts @@ -223,7 +223,6 @@ interface Store { state: { url: string; navigation: { - isLoading: boolean; hasStarted: boolean; hasFinished: boolean; }; @@ -238,7 +237,6 @@ export const { state, actions } = store< Store >( 'core/router', { state: { url: window.location.href, navigation: { - isLoading: false, hasStarted: false, hasFinished: false, }, @@ -291,7 +289,6 @@ export const { state, actions } = store< Store >( 'core/router', { return; } - navigation.isLoading = true; if ( loadingAnimation ) { navigation.hasStarted = true; navigation.hasFinished = false; @@ -331,7 +328,6 @@ export const { state, actions } = store< Store >( 'core/router', { // Update the navigation status once the the new page rendering // has been completed. - navigation.isLoading = false; if ( loadingAnimation ) { navigation.hasStarted = false; navigation.hasFinished = true;