Skip to content

Commit

Permalink
Add ContextHandle in yew::prelude (#2372)
Browse files Browse the repository at this point in the history
* Adds ContextHandle in yew::prelude

* Adds ContextHandle in yew::prelude

Added ContextHandle in /yew/src/lib.rs and updated stderr with test-overwrite

* Formats code using cargo fmt

* Revert "Adds ContextHandle in yew::prelude"

This reverts commit abdf21f.
  • Loading branch information
lameferret committed Jan 25, 2022
1 parent 31afa9d commit 4580d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/yew/src/lib.rs
Expand Up @@ -376,7 +376,7 @@ where
pub mod prelude {
pub use crate::app_handle::AppHandle;
pub use crate::callback::Callback;
pub use crate::context::ContextProvider;
pub use crate::context::{ContextHandle, ContextProvider};
pub use crate::events::*;
pub use crate::html::{
create_portal, BaseComponent, Children, ChildrenWithProps, Classes, Component, Context,
Expand Down

1 comment on commit 4580d94

@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: 4580d94 Previous: 31afa9d Ratio
yew-struct-keyed 01_run1k 164.2255 269.2845 0.61
yew-struct-keyed 02_replace1k 182.166 255.614 0.71
yew-struct-keyed 03_update10th1k_x16 328.3755 444.468 0.74
yew-struct-keyed 04_select1k 67.6965 86.78399999999999 0.78
yew-struct-keyed 05_swap1k 81.108 101.038 0.80
yew-struct-keyed 06_remove-one-1k 27.823 34.5415 0.81
yew-struct-keyed 07_create10k 1943.279 2831.4849999999997 0.69
yew-struct-keyed 08_create1k-after1k_x2 370.257 586.5625 0.63
yew-struct-keyed 09_clear1k_x8 190.033 260.2425 0.73
yew-struct-keyed 21_ready-memory 0.9634513854980468 0.9634513854980468 1
yew-struct-keyed 22_run-memory 1.5035057067871094 1.5034751892089844 1.00
yew-struct-keyed 23_update5-memory 1.5043067932128906 1.5043830871582031 1.00
yew-struct-keyed 24_run5-memory 1.510845184326172 1.5091552734375 1.00
yew-struct-keyed 25_run-clear-memory 1.1291122436523438 1.1287879943847656 1.00
yew-struct-keyed 31_startup-ci 1786.3202499999998 1733.726 1.03
yew-struct-keyed 32_startup-bt 27.35999999999999 39.80199999999999 0.69
yew-struct-keyed 34_startup-totalbytes 365.9482421875 365.9482421875 1

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

Please sign in to comment.