From faa4b9c8d90a523f59dc585130b3bda14b58f81b Mon Sep 17 00:00:00 2001 From: noxxxxxious Date: Sat, 25 Nov 2023 21:01:36 -0600 Subject: [PATCH 1/2] Update Router example to use non-referenced ReadSignal Rerendered docs --- docs/next/advanced/routing.md | 2 +- website/sitemap_index.xml | 64 +++++++++++++++++------------------ 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/docs/next/advanced/routing.md b/docs/next/advanced/routing.md index 297b3211..2fa0bac9 100644 --- a/docs/next/advanced/routing.md +++ b/docs/next/advanced/routing.md @@ -200,7 +200,7 @@ To display content based on the route that matches, we can use a `Router`. view! { Router( integration=HistoryIntegration::new(), - view=|route: &ReadSignal| { + view=|route: ReadSignal| { view! { div(class="app") { (match route.get().as_ref() { diff --git a/website/sitemap_index.xml b/website/sitemap_index.xml index 81e5dde8..9d8b752c 100644 --- a/website/sitemap_index.xml +++ b/website/sitemap_index.xml @@ -53,6 +53,27 @@ https://sycamore-rs.netlify.app/docs/v0.7/getting_started/hello_worldyearly0.3 https://sycamore-rs.netlify.app/docs/v0.7/getting_started/installationyearly0.3 https://sycamore-rs.netlify.app/docs/v0.7/sidebaryearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/advanced/advanced_reactivityyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/advanced/cssyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/advanced/js_interopyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/advanced/noderefyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/advanced/routingyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/advanced/ssryearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/advanced/testingyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/advanced/tweenedyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/basics/componentsyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/basics/control_flowyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/basics/data_bindingyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/basics/iterationyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/basics/reactivityyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/basics/templateyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/contribute/architectureyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/contribute/developmentyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/getting_started/hello_worldyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/getting_started/installationyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/optimizations/code_sizeyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/optimizations/speedyearly0.3 +https://sycamore-rs.netlify.app/docs/v0.5/sidebaryearly0.3 https://sycamore-rs.netlify.app/docs/v0.6/advanced/advanced_reactivityyearly0.3 https://sycamore-rs.netlify.app/docs/v0.6/advanced/contextsyearly0.3 https://sycamore-rs.netlify.app/docs/v0.6/advanced/cssyearly0.3 @@ -98,45 +119,24 @@ https://sycamore-rs.netlify.app/docs/v0.8/getting_started/installationyearly0.3 https://sycamore-rs.netlify.app/docs/v0.8/migration/0.7-to-0.8yearly0.3 https://sycamore-rs.netlify.app/docs/v0.8/sidebaryearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/advanced/advanced_reactivityyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/advanced/cssyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/advanced/js_interopyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/advanced/noderefyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/advanced/routingyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/advanced/ssryearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/advanced/testingyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/advanced/tweenedyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/basics/componentsyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/basics/control_flowyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/basics/data_bindingyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/basics/iterationyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/basics/reactivityyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/basics/templateyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/contribute/architectureyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/contribute/developmentyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/getting_started/hello_worldyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/getting_started/installationyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/optimizations/code_sizeyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/optimizations/speedyearly0.3 -https://sycamore-rs.netlify.app/docs/v0.5/sidebaryearly0.3 -https://sycamore-rs.netlify.app/examples/hello-worldmonthly0.5 -https://sycamore-rs.netlify.app/examples/http-requestmonthly0.5 +https://sycamore-rs.netlify.app/examples/hello-buildermonthly0.5 +https://sycamore-rs.netlify.app/examples/hydratemonthly0.5 https://sycamore-rs.netlify.app/examples/higher-order-componentsmonthly0.5 -https://sycamore-rs.netlify.app/examples/ssrmonthly0.5 +https://sycamore-rs.netlify.app/examples/js-snippetsmonthly0.5 https://sycamore-rs.netlify.app/examples/attributes-passthroughmonthly0.5 -https://sycamore-rs.netlify.app/examples/countermonthly0.5 -https://sycamore-rs.netlify.app/examples/transitionsmonthly0.5 +https://sycamore-rs.netlify.app/examples/componentsmonthly0.5 https://sycamore-rs.netlify.app/examples/http-request-buildermonthly0.5 +https://sycamore-rs.netlify.app/examples/transitionsmonthly0.5 +https://sycamore-rs.netlify.app/examples/number-bindingmonthly0.5 +https://sycamore-rs.netlify.app/examples/hello-worldmonthly0.5 https://sycamore-rs.netlify.app/examples/svgmonthly0.5 -https://sycamore-rs.netlify.app/examples/js-snippetsmonthly0.5 -https://sycamore-rs.netlify.app/examples/componentsmonthly0.5 -https://sycamore-rs.netlify.app/examples/iterationmonthly0.5 https://sycamore-rs.netlify.app/examples/timermonthly0.5 -https://sycamore-rs.netlify.app/examples/hello-buildermonthly0.5 https://sycamore-rs.netlify.app/examples/contextmonthly0.5 -https://sycamore-rs.netlify.app/examples/number-bindingmonthly0.5 +https://sycamore-rs.netlify.app/examples/http-requestmonthly0.5 https://sycamore-rs.netlify.app/examples/js-framework-benchmarkmonthly0.5 -https://sycamore-rs.netlify.app/examples/hydratemonthly0.5 https://sycamore-rs.netlify.app/examples/todomvcmonthly0.5 https://sycamore-rs.netlify.app/examples/motionmonthly0.5 +https://sycamore-rs.netlify.app/examples/ssrmonthly0.5 +https://sycamore-rs.netlify.app/examples/iterationmonthly0.5 +https://sycamore-rs.netlify.app/examples/countermonthly0.5 From 3c694ca30f4e98a90d7a379430de2e4239c04306 Mon Sep 17 00:00:00 2001 From: noxxxxxious Date: Sun, 26 Nov 2023 11:58:32 -0600 Subject: [PATCH 2/2] Update both router examples to no longer use references --- docs/next/advanced/routing.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/next/advanced/routing.md b/docs/next/advanced/routing.md index 2fa0bac9..175edb27 100644 --- a/docs/next/advanced/routing.md +++ b/docs/next/advanced/routing.md @@ -203,7 +203,7 @@ view! { view=|route: ReadSignal| { view! { div(class="app") { - (match route.get().as_ref() { + (match route.get() { AppRoutes::Index => view! { "This is the index page" }, @@ -248,10 +248,10 @@ let route = AppRoutes::match_path(path); view! { StaticRouter( route=route, - view=|route: &ReadSignal| { + view=|route: ReadSignal| { view! { div(class="app") { - (match route.get().as_ref() { + (match route.get() { AppRoutes::Index => view! { "This is the index page" },