yew
yew copied to clipboard
Tutorial uses String not AttrValue
This is about: Inaccurate/misleading documentation (e.g. technically incorrect advice)
Problem
In this step of the tutorial, a struct is defined with String fields, and in later step those structs are used as component properties.
This looks like Anti-pattern #1. Shouldn't they be made AttrValues instead?
The problem lies in the fact that AttrValue (implicit_clone::unsync::IString) does not implement Deserialize, which is required to parse the fetch. It could be implemented manually, but the cost-benefit of doing so would need to be considered.