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

mergeRowsWithEntities

Generic types:T

Merges rows with existing entities to preserve virtual array data

Presentation

function mergeRowsWithEntities(
  feature: string,
  entity: string,
  rows: T[],
  entities: Dictionary<SmartNgRXRowBase>,
): T[];

Returns

T[] -

merged rows

Parameters

NameTypeDescription
feature
string

the name of the feature the rows represent

entity
string

the name of the entity the rows represent

rows
T[]

rows to merge

entities
Dictionary<SmartNgRXRowBase>

existing entities to merge with