* Fix scheduler main queue delay (#1953)
Fixes an issue where a runnable added from outside the component
lifecyle (i.e. agent bridge message from inside a callback) would not be
executed until the next component lifecycle event.
* Add test for `scheduler::run`
Ensures `scheduler::run` executes runnables immediately.
anchors with the href attribute have the implicit 'link' ARIA role and
this allows for better accessibility for screen readers and allows
tabbing to the anchor point.
* Add documentation for VRef
Documents the way that VRef can be used to hold a web-sys Node value in
Yew.
* Improve phrasing and correct example mistake
Single quotes to double for strings, thankfully we are in Rust not JS
Removed the methods that are no longer available on web-sys latest (0.3.51).
Added a note that the selected_options method requires the
HtmlCollection feature from the web-sys crate.
* Add documentation for optional child component
* Fix typo
* Fix example
* Fix inline style to be more consistent
Co-authored-by: Simon <simon@siku2.io>
* Fix style on versioned docs too
Co-authored-by: Simon <simon@siku2.io>
* Add documentation for boolean attributes
Adds documentation for explicit key=value syntax of boolean attributes.
* Improve wording to be more correct for Yew
Rewording to avoid stating that a literal 'true' is required by boolean
attributes.
Make it clear that the html example provided is only functionally
equivalent to the actual output emitted.
* Add prerequisite target to "build a sample app"
Hi,
While trying to get a simple app running on Yew, I had the target wasm32-unknown-unknown missing so my project couldn't work.
I managed to find the missing target (by searching from the error message I was getting) on the same "Getting started" documentation, but later than the "build a sample app" page I was on.
It is my opinion that this can be needed during the "build a sample app" step, earlier than the "Project setup" step.
Another option could be to reference the "Project setup" from "build a sample app", in order to troubleshoot why the sample app is not working.
This is but a proposal and if you think this is not needed, please close this PR.
* Update website/versioned_docs/version-0.18.0/getting-started/build-a-sample-app.md
Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>
Co-authored-by: Teymour Aldridge <42674621+teymour-aldridge@users.noreply.github.com>
* Impl IntoOptPropValue for Option<V> -> Option<T>
The only implmented types passed to impl_into_prop macro
* Update packages/yew/src/html/conversion.rs
sure
Co-authored-by: Simon <simon@siku2.io>
Co-authored-by: Simon <simon@siku2.io>
* fix some spaghetti and make optimization along the way
* don't make DOM API call and re-recognize route every time current route is obtained
This has the drawback of requiring the `Routable` enum to be `Clone`. Generally, this shouldn't be an issue as cloning the value *should* be cheaper than making a DOM API call and then running the route recognition process
* fmt, tests, doc
* fix
* warn, not log
* make utils tests unit tests
* fix macro test
* cleanup router on destroy, update docs
* Clone bound + docs
* apply review