Open VincentBerthier opened 3 months ago
A bit of an update on this:
#[prop(into)]
seems to work (at least for str
-> String
or f32
-> f64
)
#[prop(optional)] val: u32
doesn’t compile (it requires an option), and #[prop(optional)] val: Option<u32>]
does compile but gives an hydration warning complaining that it can’t find the wasm function for the component.
#[prop(default = 42_u32)]
does not compile (trait Deserialize is not implemented for the component)
Describe the bug Tagging island attributes with prop(into) or prop(default) errors.
Leptos Dependencies
0.7.0-beta, or leptos_0.7 branch (commit 25f0186098a01eb40caa846a1524678dc12213e7) I’m told it’s the case in 0.6.x too though.
To Reproduce
Expected behavior Should compile…doesn’t.
Screenshots