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

SSR failure with Switch when no routes match #2795

Closed
WorldSEnder opened this issue Jul 30, 2022 · 0 comments · Fixed by #2814
Closed

SSR failure with Switch when no routes match #2795

WorldSEnder opened this issue Jul 30, 2022 · 0 comments · Fixed by #2814

Comments

@WorldSEnder
Copy link
Member

console::warn!("no route matched");

This fails to run on non-wasm targets, since it tries to build a JsString. Either should use a platform dependent way to log the warning, or not log any at all. Running SSR with a non-matching route and a Switch triggers the bug. A reproducing example is found in vaniusrb/yew-problem-ssr@c7597fe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant