Skip to main content

AsyncDataLoaderFeatureConfig <T>

Index

Properties

optionalasyncDataLoader

asyncDataLoader?: AsyncTreeDataLoader<T>

optionalcreateLoadingItemData

createLoadingItemData?: () => T

Type declaration

    • (): T
    • Returns T

optionalonLoadedChildren

onLoadedChildren?: (itemId: string, childrenIds: string[]) => void

Type declaration

    • (itemId: string, childrenIds: string[]): void
    • Parameters

      • itemId: string
      • childrenIds: string[]

      Returns void

optionalonLoadedItem

onLoadedItem?: (itemId: string, item: T) => void

Type declaration

    • (itemId: string, item: T): void
    • Parameters

      • itemId: string
      • item: T

      Returns void

rootItemId

rootItemId: string

optionalsetLoadingItems

setLoadingItems?: SetStateFn<string[]>