Skip to main content

useCollectionInitialState

useCollectionInitialState<T,I>(dataSource: undefined | string | CollectionProxy<T, I, CollectionState<T, I>, Collection<T, I, CollectionState<T, I>>> | T[],options: UseCollectionOptions<T, I>): CollectionState<T, I>

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
dataSourceundefined | string | CollectionProxy<T, I, CollectionState<T, I>, Collection<T, I, CollectionState<T, I>>> | T[]
Additional properties for advanced use cases
PropertiesTypeDescription
optionsUseCollectionOptions<T, I>