Skip to main content

AsyncDataLoaderFeatureItemInstance <T>

Index

Properties

invalidateChildrenIds

invalidateChildrenIds: (optimistic?: boolean) => Promise<void>

Invalidate fetched children ids for item, and triggers a refetch and subsequent rerender if the item is visible


Type declaration

    • (optimistic?: boolean): Promise<void>
    • Parameters

      • optionaloptimistic: boolean

        If true, the item will not trigger a state update on loadingItemChildrens, and the tree will continue to display the old data until the new data has loaded.

      Returns Promise<void>

invalidateItemData

invalidateItemData: (optimistic?: boolean) => Promise<void>

Invalidate fetched data for item, and triggers a refetch and subsequent rerender if the item is visible


Type declaration

    • (optimistic?: boolean): Promise<void>
    • Parameters

      • optionaloptimistic: boolean

        If true, the item will not trigger a state update on loadingItemData, and the tree will continue to display the old data until the new data has loaded.

      Returns Promise<void>

isLoading

isLoading: () => boolean & () => boolean

updateCachedChildrenIds

updateCachedChildrenIds: (childrenIds: string[]) => void

Type declaration

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

      • childrenIds: string[]

      Returns void

updateCachedData

updateCachedData: (data: undefined | T) => void

Set to undefined to clear cache without triggering automatic refetch. Use

@invalidateItemData

to clear and triggering refetch.


Type declaration

    • (data: undefined | T): void
    • Parameters

      • data: undefined | T

      Returns void