Home
Using Smart NgRX
Demo Walkthrough
API
@smarttools/smart-ngrx / Function

convertChildrenToVirtualArray

Generic types:P C

Converts the child field to a virtual array

Presentation

function convertChildrenToVirtualArray(
  parentFieldName: keyof P,
  parentEntity: EntityState<P>,
  parentFeature: string,
  parentEntityName: string,
): void;

Returns

void

Parameters

NameTypeDescription
parentFieldName
keyof P

the name of the field in the row to convert

parentEntity
EntityState<P>

the entity data we are dealing with

parentFeature
string

the feature this entity belongs to

parentEntityName
string

the name of the entity