Closed masq6r closed 5 months ago
@masq6r thanks, I will explorer this use cases and see what I can do.
I'm not so sure but maybe something like adaptlist
, adaptmap
?
We can make adaptiview to support alist or aset like:
adaptiview () {
let! ls = AList.ofArray [| 1; 2 |]
let! set = ASet.ofArray [| 1; 2 |]
for x in ls do html.text x
for x in set do html.text x
}
But not sure if adaptlist, adaptmap is needed. Because blazor has its own diff algorithm, the adaptiview is just to help ito make the scope smaller. Not sure how to integrate alist and aset with blazor diff more deeper.
We can make adaptiview to support alist or aset like:
adaptiview () { let! ls = AList.ofArray [| 1; 2 |] let! set = ASet.ofArray [| 1; 2 |] for x in ls do html.text x for x in set do html.text x }
But not sure if adaptlist, adaptmap is needed. Because blazor has its own diff algorithm, the adaptiview is just to help ito make the scope smaller. Not sure how to integrate alist and aset with blazor diff more deeper.
Thanks for your quick response. Your proposal looks good. Collection support would be a nice feature as there are so many changeable lists in real world apps.
adaptiview
CE is really a brilliant idea and I found it very handy building dynamic pages. The CE'sBind
implementation seems not supportcset
,aset
,alist
etc. Is there a plan to support them?