Synphonyte / leptos-struct-table

Easily create Leptos table components from structs
Apache License 2.0
164 stars 24 forks source link

Add an effect for row and sorting #40

Closed dakaizou closed 5 months ago

dakaizou commented 5 months ago

fix #39

maccesch commented 5 months ago

Thank you very much! Unfortunately the call to clear is needed here. When sorting changes the loaded cache needs to be cleared and new data needs to be loaded from the source.

The solution was to replace a get with a get_untracked inside the closure clear.