goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
15 lines • 655 B
TypeScript
import { RowData } from '../types';
/**
* Efficiently compares two arrays of rows to determine if they're equal
* Uses ID and update timestamp for comparison to avoid deep object comparison
*/
export declare function areRowsEqual(a: RowData[] | undefined, b: RowData[] | undefined): boolean;
/**
* Creates a stable key from a row for comparison purposes
*/
export declare function getRowKey(row: RowData): string;
/**
* Compares rows by their IDs only (useful for checking if the set of rows changed)
*/
export declare function areRowIdsEqual(a: RowData[] | undefined, b: RowData[] | undefined): boolean;
//# sourceMappingURL=rowComparison.d.ts.map