createSmartSelector
Generic types: | P T |
Wraps the specified child array(s) with a Proxy that will request the items from the server as they are accessed (virtual data) rather than loading everything from the array up front.
In order to access the array without triggering a request, as is needed for a tree control that uses virtual data, the proxy adds support for a rawArray property that returns the original array before it was proxied.
See Also
Presentation
function createSmartSelector (
parentSelector: ParentSelector <P>,
children: ChildDefinition <P, T>[],
): MemoizedSelector<object, EntityState<P>, DefaultProjectorFn<EntityState<P>>>;
Returns
MemoizedSelector<object, EntityState<P>, DefaultProjectorFn<EntityState<P>>>
-Memozied selector that returns the selected data.
Parameters
Name | Type | Description |
---|---|---|
parentSelector |
| The selector to retrieve the parent data |
children |
| The array of |