Make NodeRef
generic to avoid manual casting
#766
Labels
C-enhancement
Category: new feature or improvement to existing feature
NodeRef
generic to avoid manual casting
#766
Currently
NodeRef
returns always aweb_sys::Node
. To improve type safety and code readability, we could makeNodeRef
generic, allowing it to be typed directly as e.g.web_sys::HtmlInputElement
.Current state:
Desired state:
It would be super convenient if the type could be determined directly from the view macro.
The text was updated successfully, but these errors were encountered: