We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Navigating between Home and Test results sometimes in a full refresh.
Home
Test
use sycamore::prelude::*; use sycamore_router::{HistoryIntegration, Route, Router}; #[derive(Route, Copy, Clone)] enum AppRoutes { #[to("/")] Home, #[to("/test")] Test, #[not_found] NotFound, } #[component] fn App() -> View { view! { Router( integration=HistoryIntegration::new(), view=move |route: ReadSignal<AppRoutes>| { view! { (match route.get() { AppRoutes::Home => view! { "Home" Nav() }, AppRoutes::Test => view! { "Test" Nav() }, AppRoutes::NotFound => view! { "Not found" }, }) } } ) } } #[component] pub fn Nav() -> View { view! { nav { ul { li { a(href="/") { "Home" } } li { a(href="/test") { "Test" } } } } } } fn main() { sycamore::render(App); }
To Reproduce Steps to reproduce the behavior:
Expected behavior No full refresh when navigation between Home and Test.
Environment
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Navigating between
Home
andTest
results sometimes in a full refresh.To Reproduce
Steps to reproduce the behavior:
Test
.Home
=> Unexpected full refresh.Expected behavior
No full refresh when navigation between
Home
andTest
.Environment
The text was updated successfully, but these errors were encountered: