* A cached rows query whose ordering matches reconcileCreatedRow's * orderKey/position heuristic: the default view with no active filter or sort. * Filtered or column-sorted variants encode a non-null `filter`/`sort` in their * params key — their membership, order, and `totalCount` are qu
(queryKey: readonly unknown[])
| 724 | * `find`/`write` subtrees aren't row-list data and never match. |
| 725 | */ |
| 726 | function isDefaultOrderRowsQuery(queryKey: readonly unknown[]): boolean { |
| 727 | if (queryKey.includes('find') || queryKey.includes('write')) return false |
| 728 | const last = queryKey[queryKey.length - 1] |
| 729 | if (typeof last !== 'string') return false |
| 730 | try { |
| 731 | const params = JSON.parse(last) as { filter?: unknown; sort?: unknown } |
| 732 | return params.filter == null && params.sort == null |
| 733 | } catch { |
| 734 | return false |
| 735 | } |
| 736 | } |
| 737 | |
| 738 | /** |
| 739 | * Splice a server-returned new row into the paginated row cache. Bumps the |
no test coverage detected