You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a route with query segments according to the recipe in the router docs produces errors. The query segment information is not passed on to the receiving component.
Run dx serve and navigate to http://localhost:8080/blog?name=John&surname=Doe
The app will panic at line 53: panicked at 'called Option::unwrap() on a None value'. Because from_query received an empty query string, the query segments were never overwritten.
Environment:
Dioxus version: 0.4 (dioxus-router 0.4.1)
Rust version: 1.72.1, stable
OS info: Linux, Ubuntu
App platform: web
Questionnaire
I'm interested in fixing this myself but don't know where to start
I would like to fix and I have a solution
I don't have time to fix this right now, but maybe later
The text was updated successfully, but these errors were encountered:
Query segments were fixed in #1406. If you run the example inside of the main repo it should be fixed. You can switch Dioxus to the git version in your Cargo.toml to fix the issue in your own project:
Problem
Creating a route with query segments according to the recipe in the router docs produces errors. The query segment information is not passed on to the receiving component.
According to the browser log
FromQuery::from_query
always gets an empty query string, although the query string was written usingDisplay::fmt
.Steps To Reproduce
Steps to reproduce the behavior:
dx serve
and navigate tohttp://localhost:8080/blog?name=John&surname=Doe
Option::unwrap()
on aNone
value'. Becausefrom_query
received an empty query string, the query segments were never overwritten.Environment:
web
Questionnaire
The text was updated successfully, but these errors were encountered: