Closed dessalines closed 3 weeks ago
I often only want to show something in the true condition, but the dyn_if function has three arguments:
true
dyn_if
The false case should probably either be an Option type, or there should be a helper function that is just empty html.
false
Option
Currently I'm doing:
.dyn_if(|| condition, || ..., || fragment([]) as a workaround.
.dyn_if(|| condition, || ..., || fragment([])
I often only want to show something in the
true
condition, but thedyn_if
function has three arguments:The
false
case should probably either be anOption
type, or there should be a helper function that is just empty html.Currently I'm doing:
.dyn_if(|| condition, || ..., || fragment([])
as a workaround.