Skip to content

Commit

Permalink
Fix queries in ssr_router example (#3587)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-Bilbie authored Oct 11, 2024
1 parent b2cba91 commit 7be9d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ssr_router/src/bin/ssr_router_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async fn render(
Query(queries): Query<HashMap<String, String>>,
State((index_html_before, index_html_after)): State<(String, String)>,
) -> impl IntoResponse {
let url = url.to_string();
let url = url.path().to_owned();

let renderer = yew::ServerRenderer::<ServerApp>::with_props(move || ServerAppProps {
url: url.into(),
Expand Down

1 comment on commit 7be9d17

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yew master branch benchmarks (Lower is better)

Benchmark suite Current: 7be9d17 Previous: 2b49f4b Ratio
yew-hooks-v0.21.0-keyed 01_run1k 193.9 190.2 1.02
yew-hooks-v0.21.0-keyed 02_replace1k 222.1 215.1 1.03
yew-hooks-v0.21.0-keyed 03_update10th1k_x16 90.6 88.7 1.02
yew-hooks-v0.21.0-keyed 04_select1k 40 40.2 1.00
yew-hooks-v0.21.0-keyed 05_swap1k 105 105.1 1.00
yew-hooks-v0.21.0-keyed 06_remove-one-1k 76 76.5 0.99
yew-hooks-v0.21.0-keyed 07_create10k 2179 2211.5 0.99
yew-hooks-v0.21.0-keyed 08_create1k-after1k_x2 212.8 217.2 0.98
yew-hooks-v0.21.0-keyed 09_clear1k_x8 84.2 84 1.00
yew-hooks-v0.21.0-keyed 21_ready-memory 2.1212377548217773 2.109503746032715 1.01
yew-hooks-v0.21.0-keyed 22_run-memory 6.310763359069824 6.277785301208496 1.01
yew-hooks-v0.21.0-keyed 23_update5-memory 6.573081970214844 6.622165679931641 0.99
yew-hooks-v0.21.0-keyed 25_run-clear-memory 5.130159378051758 5.095770835876465 1.01
yew-hooks-v0.21.0-keyed 26_run-10k-memory 42.794925689697266 42.82747554779053 1.00
yew-hooks-v0.21.0-keyed 41_size-uncompressed 168 168 1
yew-hooks-v0.21.0-keyed 42_size-compressed 54.6 54.6 1
yew-hooks-v0.21.0-keyed 43_first-paint 435.8 444.3 0.98
yew-v0.21.0-keyed 01_run1k 195.1 193.7 1.01
yew-v0.21.0-keyed 02_replace1k 220.9 214.3 1.03
yew-v0.21.0-keyed 03_update10th1k_x16 75.3 68.7 1.10
yew-v0.21.0-keyed 04_select1k 16.9 15.8 1.07
yew-v0.21.0-keyed 05_swap1k 81.1 77 1.05
yew-v0.21.0-keyed 06_remove-one-1k 69.1 64 1.08
yew-v0.21.0-keyed 07_create10k 2195.5 2202.6 1.00
yew-v0.21.0-keyed 08_create1k-after1k_x2 213.6 212.9 1.00
yew-v0.21.0-keyed 09_clear1k_x8 87.5 84.7 1.03
yew-v0.21.0-keyed 21_ready-memory 2.1193323135375977 2.0940399169921875 1.01
yew-v0.21.0-keyed 22_run-memory 6.247616767883301 6.196362495422363 1.01
yew-v0.21.0-keyed 23_update5-memory 6.33714485168457 6.321741104125977 1.00
yew-v0.21.0-keyed 25_run-clear-memory 4.971579551696777 4.961694717407227 1.00
yew-v0.21.0-keyed 26_run-10k-memory 41.572007179260254 41.576828956604 1.00
yew-v0.21.0-keyed 41_size-uncompressed 166 166 1
yew-v0.21.0-keyed 42_size-compressed 54.4 54.4 1
yew-v0.21.0-keyed 43_first-paint 449.8 425.2 1.06

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.