Skip to content

Commit 94f543c

Browse files
- Emit resize event when local datasource is subscribed aligning it with the remote datasource. (#2085)
1 parent ed7b394 commit 94f543c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

vuu-ui/packages/vuu-data-local/src/array-data-source/array-data-source.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,11 @@ export class ArrayDataSource
263263
this.config = config;
264264
} else {
265265
this.sendSizeUpdateToClient();
266+
this.emit(
267+
"resize",
268+
this.processedData ? this.processedData.length : this.#data.length,
269+
);
270+
266271
if (range && !this.#range.equals(range)) {
267272
this.range = range;
268273
} else if (this.#range !== NULL_RANGE) {

0 commit comments

Comments
 (0)