I am using the NGRX upsertMany and sending multiple partial as an array but it looks like when there are multiple updates in the same array for the same record only first one is picked e.g. when the below array is dispatched
[
{ id: '1', value1: 1, value2: 2 },
{ id: '1', value1: 1, value2: 3 }
{ id: '2', value1: 2, value2: 0 }
]
The store only updates
[
{ id: '1', value1: 1, value2: 2 },
{ id: '2', value1: 2, value2: 0 }
]
Is this correct? how can I force it to apply all updates using upsertMany?
NgRX version 18 is used.
Update
When I remove the sortComparer
or set it to false
all updates are applied correctly. How can I apply sort and all updates?