From 8b4ccb7817a98379eff2f348f55bbd84f9f12ea3 Mon Sep 17 00:00:00 2001 From: Sabin Regmi Date: Thu, 6 Mar 2025 12:14:05 -0500 Subject: [PATCH] update: modify outlet context initialization level (#3830) --- packages/router/src/contexts/outlet.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/router/src/contexts/outlet.rs b/packages/router/src/contexts/outlet.rs index 0f66339e4..b672bef30 100644 --- a/packages/router/src/contexts/outlet.rs +++ b/packages/router/src/contexts/outlet.rs @@ -17,7 +17,7 @@ pub struct OutletContext { } impl OutletContext { - /// Creates a new outlet context starting at level 1 + /// Creates a new outlet context starting at level 0 pub fn new() -> Self { Self { current_level: 0, @@ -62,7 +62,7 @@ impl OutletContext { /// Returns the current outlet context from the component hierarchy. /// /// This hook retrieves the outlet context from the current component scope. If no context is found, -/// it creates a new context with a default level of 1. +/// it creates a new context with a default level of 0. /// /// # Type Parameters ///