(id: string)
| 266 | }; |
| 267 | |
| 268 | const scrollToId = (id: string) => { |
| 269 | const index = idToIndex.get(id); |
| 270 | if (index == null) { |
| 271 | return; |
| 272 | } |
| 273 | virtualizer.scrollToIndex(index, { align: "auto" }); |
| 274 | }; |
| 275 | |
| 276 | useImperativeHandle( |
| 277 | ref, |
no test coverage detected