Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Router example to use non-referenced ReadSignal #647

Merged
merged 2 commits into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/next/advanced/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<AppRoutes>| {
view=|route: ReadSignal<AppRoutes>| {
view! {
div(class="app") {
(match route.get().as_ref() {
Expand Down
64 changes: 32 additions & 32 deletions website/sitemap_index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,27 @@
<url><loc>https://sycamore-rs.netlify.app/docs/v0.7/getting_started/hello_world</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.7/getting_started/installation</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.7/sidebar</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/advanced_reactivity</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/css</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/js_interop</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/noderef</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/routing</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/ssr</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/testing</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/tweened</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/basics/components</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/basics/control_flow</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/basics/data_binding</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/basics/iteration</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/basics/reactivity</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/basics/template</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/contribute/architecture</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/contribute/development</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/getting_started/hello_world</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/getting_started/installation</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/optimizations/code_size</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/optimizations/speed</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/sidebar</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.6/advanced/advanced_reactivity</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.6/advanced/contexts</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.6/advanced/css</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
Expand Down Expand Up @@ -98,45 +119,24 @@
<url><loc>https://sycamore-rs.netlify.app/docs/v0.8/getting_started/installation</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.8/migration/0.7-to-0.8</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.8/sidebar</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/advanced_reactivity</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/css</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/js_interop</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/noderef</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/routing</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/ssr</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/testing</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/advanced/tweened</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/basics/components</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/basics/control_flow</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/basics/data_binding</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/basics/iteration</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/basics/reactivity</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/basics/template</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/contribute/architecture</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/contribute/development</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/getting_started/hello_world</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/getting_started/installation</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/optimizations/code_size</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/optimizations/speed</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/docs/v0.5/sidebar</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/hello-world</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/http-request</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/hello-builder</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/hydrate</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/higher-order-components</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/ssr</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/js-snippets</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/attributes-passthrough</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/counter</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/transitions</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/components</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/http-request-builder</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/transitions</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/number-binding</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/hello-world</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/svg</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/js-snippets</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/components</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/iteration</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/timer</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/hello-builder</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/context</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/number-binding</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/http-request</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/js-framework-benchmark</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/hydrate</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/todomvc</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/motion</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/ssr</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/iteration</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
<url><loc>https://sycamore-rs.netlify.app/examples/counter</loc><changefreq>monthly</changefreq><priority>0.5</priority></url>
</urlset>
Loading