File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/common/src/client/watched/processors Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export interface DifferentialWatchedQueryOptions<RowType> extends WatchedQueryOp
6868 * Comparator used to identify and compare items in the result set.
6969 * If not provided, the default comparator will be used which keys items by their `id` property if available,
7070 * otherwise it uses JSON stringification of the entire item for keying and comparison.
71- * @defaultValue {@link DEFAULT_DIFFERENTIAL_WATCHED_QUERY_COMPARATOR }
71+ * @defaultValue {@link DEFAULT_COMPARATOR }
7272 */
7373 comparator ?: DifferentialWatchedQueryComparator < RowType > ;
7474}
@@ -121,7 +121,7 @@ export const EMPTY_DIFFERENTIAL = {
121121 * It keys items by their `id` property if available, alternatively it uses JSON stringification
122122 * of the entire item for the key and comparison.
123123 */
124- export const DEFAULT_DIFFERENTIAL_WATCHED_QUERY_COMPARATOR : DifferentialWatchedQueryComparator < any > = {
124+ export const DEFAULT_COMPARATOR : DifferentialWatchedQueryComparator < any > = {
125125 keyBy : ( item ) => {
126126 if ( item && typeof item == 'object' && typeof item [ 'id' ] == 'string' ) {
127127 return item [ 'id' ] ;
@@ -144,7 +144,7 @@ export class DifferentialQueryProcessor<RowType>
144144
145145 constructor ( protected options : DifferentialQueryProcessorOptions < RowType > ) {
146146 super ( options ) ;
147- this . comparator = options . comparator ?? DEFAULT_DIFFERENTIAL_WATCHED_QUERY_COMPARATOR ;
147+ this . comparator = options . comparator ?? DEFAULT_COMPARATOR ;
148148 }
149149
150150 /*
You can’t perform that action at this time.
0 commit comments