AsyncDataLoaderFeatureItemInstance <T>
Index
Properties
hasLoadedData
invalidateChildrenIds
Invalidate fetched children ids for item, and triggers a refetch and subsequent rerender if the item is visible
Type declaration
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
Invalidate fetched data for item, and triggers a refetch and subsequent rerender if the item is visible
Type declaration
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
Returns false. Provided for consistency with async data loader
updateCachedChildrenIds
Type declaration
Parameters
childrenIds: string[]
Returns void
updateCachedData
Set to undefined to clear cache without triggering automatic refetch. Use
Type declaration
Parameters
data: undefined | T
Returns void
Returns true. Provided for consistency with async data loader