chore: generate
This commit is contained in:
@@ -24,7 +24,8 @@ export function useFilteredList<T>(props: FilteredListProps<T>) {
|
|||||||
const [grouped, { refetch }] = createResource(
|
const [grouped, { refetch }] = createResource(
|
||||||
() => {
|
() => {
|
||||||
// When items is a function (not async filter function), call it to track changes
|
// When items is a function (not async filter function), call it to track changes
|
||||||
const itemsValue = typeof props.items === "function"
|
const itemsValue =
|
||||||
|
typeof props.items === "function"
|
||||||
? (props.items as () => T[])() // Call synchronous function to track it
|
? (props.items as () => T[])() // Call synchronous function to track it
|
||||||
: props.items
|
: props.items
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user