Skip to content

Commit 01e4277

Browse files
committed
[store] tableCellIdsListeners in stats
1 parent f16afa2 commit 01e4277

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

src/store.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,7 @@ export const createStore: typeof createStoreDecl = (): Store => {
14461446
? {
14471447
tables: pairCollSize2(tablesListeners),
14481448
tableIds: pairCollSize2(tableIdsListeners),
1449+
tableCellIds: pairCollSize2(tableCellIdsListeners),
14491450
table: pairCollSize2(tableListeners),
14501451
rowIds: pairCollSize2(rowIdsListeners),
14511452
sortedRowIds: pairCollSize2(sortedRowIdsListeners),

src/types/docs/store.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -915,6 +915,11 @@
915915
* The number of TableListener functions registered with the Store.
916916
*/
917917
/// StoreListenerStats.table
918+
/**
919+
* The number of TableCellIdsListener functions registered with the Store,
920+
* since v3.3.
921+
*/
922+
/// StoreListenerStats.tableCellIds
918923
/**
919924
* The number of RowIdsListener functions registered with the Store.
920925
*/

src/types/store.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ export type StoreListenerStats = {
274274
tableIds?: number;
275275
/// StoreListenerStats.table
276276
table?: number;
277+
/// StoreListenerStats.tableCellIds
278+
tableCellIds?: number;
277279
/// StoreListenerStats.rowIds
278280
rowIds?: number;
279281
/// StoreListenerStats.sortedRowIds

src/types/with-schemas/store.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,8 @@ export type StoreListenerStats = {
598598
tableIds?: number;
599599
/// StoreListenerStats.table
600600
table?: number;
601+
/// StoreListenerStats.tableCellIds
602+
tableCellIds?: number;
601603
/// StoreListenerStats.rowIds
602604
rowIds?: number;
603605
/// StoreListenerStats.sortedRowIds

test/unit/store-advanced.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,7 @@ describe('Stats', () => {
11621162
tables: 0,
11631163
tableIds: 0,
11641164
table: 0,
1165+
tableCellIds: 0,
11651166
rowIds: 0,
11661167
sortedRowIds: 0,
11671168
row: 0,
@@ -1185,6 +1186,7 @@ describe('Stats', () => {
11851186
['tables', []],
11861187
['tableIds', []],
11871188
['table', ['t1']],
1189+
['tableCellIds', ['t1']],
11881190
['rowIds', ['t1']],
11891191
['sortedRowIds', ['t1', 'c1', true]],
11901192
['row', ['t1', 'r1']],

0 commit comments

Comments
 (0)