Merge branch 'master' into intigrate-collect-assets

This commit is contained in:
Evan Almloff committed 2023-09-17 19:40:14 -05:00
1 parent ffb5de91d1
commit f976e08f71
379 files changed
+1962 -13517

No files matched your search

+4 -3
View File
@@ -12,7 +12,7 @@ use crate::utils::use_router_internal::use_router_internal;
/// - Otherwise the current route.
///
/// # Panic
/// - When the calling component is not nested within a [`Link`] component durring a debug build.
/// - When the calling component is not nested within a [`Link`] component during a debug build.
///
/// # Example
/// ```rust
@@ -25,6 +25,7 @@ use crate::utils::use_router_internal::use_router_internal;
/// Index {},
/// }
///
/// #[component]
/// fn App(cx: Scope) -> Element {
/// render! {
/// h1 { "App" }
@@ -32,9 +33,9 @@ use crate::utils::use_router_internal::use_router_internal;
/// }
/// }
///
/// #[inline_props]
/// #[component]
/// fn Index(cx: Scope) -> Element {
/// let path = use_route(&cx).unwrap();
/// let path: Route = use_route(&cx).unwrap();
/// render! {
/// h2 { "Current Path" }
/// p { "{path}" }