Hildebrandt Tobias
02/03/2025, 1:25 PMval tableData = loader.unsafeCast<Array<MyType>>()
TanStackTable {
data = tableData.filter { true }.toTypedArray()
...
}
the tab freezes and I get infinite TanStack refreshes.
Edit:
I now have done it with a useMemo
I hope that's correct.
val tableData = loader.unsafeCast<Array<MyType>>()
val filtered = useMemo(tabledata) { tableDaata
?.filter{ <somePredicate> }
?.toTypedArray()
}
TanStackTable {
data = filtered
...
}
turansky
02/03/2025, 2:34 PM