yew
yew copied to clipboard
Rust / Wasm framework for creating reliable and efficient web applications
#### Description This answers two questions: can hooks access mutable state without hiding it in internally mutable state such as `RefCell`, and can they return data only accessible for the...
#### Description Fixes #2405 #### Checklist - [ ] I have run `cargo make pr-flow` - [x] I have reviewed my own code - [ ] I have added tests
#### Question I'm using refs to register event listeners for non-Yew-supported event types. Following the `node_refs` example, it makes sense to use the `rendered` method to do setup on first...
**Problem** Hooks can be called in either function components or other functions marked as `#[hook]` (custom hooks). Calling hooks in a context that is not either of those results in...
**Problem** The rewriting of `function_component` breaks when using hooks inside `html!` (and other macros, but I don't think it's easy to solve it in general). ```rust use yew::prelude::*; #[function_component(App)] fn...
**Problem** Per #1345, a key prop should be provided whenever there is an array of children elements. We do not currently see an error or warning when one is not...
## Problem With the introduction of dynamic tags in #1266 there are now three different ways of constructing HTML tags: 1. Using literal tags in the `html!` macro (``) 2....
**Problem** When trying out the new suspension feature I noticed the component is just trying to be rendered in a loop without any regard for the HtmlResult. ``` use yew::prelude::*;...
**Suggestion** The scheduler for component lifecycles currently pushes boxed runners into the queue, incurring an allocation. A stable memory allocation is already available, in the form of a `Rc` for...
#### Question What is the recommended way to format html and rust code within the `html!` macro invocation? #### What I've tried (optional) rustfmt 1.4.14 - doesn't (re)format anything within...