When passing Classes
in html!
, component props don't need .clone()
, but element props do
#3589
Open
1 of 3 tasks
Labels
Problem
You can write
prop_name={&value}
when passing a prop of typeClasses
to a component (becauseClasses
implementsImplicitClone
), but you can't when passing it to an element, requiring you to writeprop_name={value.clone()}
instead, which seems inconsistent.Steps To Reproduce
Expected behavior
Successful compilation
Screenshots
Environment:
wasm32-unknown-unknown
Questionnaire
The text was updated successfully, but these errors were encountered: