Home > @uniformdev/canvas > UniqueBatchEntries
UniqueBatchEntries class
Given a batch of enhancements containing potentially duplicate entries (i.e. several components referencing the same thing), group them together by some unique identifier and enable simpler batch processing.
Signature:
Constructors
<table><thead><tr><th>
Constructor
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
(constructor)(entries, uniqueKeySelector)
</td><td>
</td><td>
Constructs a new instance of the UniqueBatchEntries
class
</td></tr> </tbody></table>
Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
</td><td>
</td><td>
Readonly<Record<string, ReadonlyArray<Readonly<BatchEntry<TArgs, TResult>>>>>
</td><td>
</td></tr> </tbody></table>
Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
</td><td>
</td><td>
Resolves all entries in a group key with the same result value.
</td></tr> <tr><td>
</td><td>
</td><td>
Resolves all remaining entries that have not been otherwise resolved with a specific value
</td></tr> </tbody></table>