diff --git a/desktop/flipper-plugin-core/src/data-source/DataSource.tsx b/desktop/flipper-plugin-core/src/data-source/DataSource.tsx index 407ebe0bf..d3161f32e 100644 --- a/desktop/flipper-plugin-core/src/data-source/DataSource.tsx +++ b/desktop/flipper-plugin-core/src/data-source/DataSource.tsx @@ -584,6 +584,10 @@ export class DataSourceView { } } + getViewIndex(entry: T): number { + return this.output(0, Infinity).indexOf(entry); + } + public setWindow(start: number, end: number) { this.windowStart = start; this.windowEnd = end;