(cellId: Id | undefined)
| 46 | getValue(onChange)?.(sortAndOffset); |
| 47 | }; |
| 48 | const handleSort = (cellId: Id | undefined) => { |
| 49 | if (getValue(sortOnClick)) { |
| 50 | const [currentCellId, currentDescending, currentOffset] = sortAndOffset(); |
| 51 | setStateAndChange([ |
| 52 | cellId, |
| 53 | cellId == currentCellId ? !currentDescending : false, |
| 54 | currentOffset, |
| 55 | ]); |
| 56 | } |
| 57 | }; |
| 58 | const handleChangeOffset = (offset: number) => { |
| 59 | const [currentCellId, currentDescending] = sortAndOffset(); |
| 60 | setStateAndChange([currentCellId, currentDescending, offset]); |
nothing calls this directly
no test coverage detected
searching dependent graphs…