(element: GridRow)
| 10 | } |
| 11 | |
| 12 | export const getRowStore = (element: GridRow) => { |
| 13 | let store = ROW_STORE_WEAK_MAP.get(element) |
| 14 | if (!store) { |
| 15 | store = create<TableRowStore>(() => ({ |
| 16 | contentHeight: element.height ?? 0, |
| 17 | })) |
| 18 | ROW_STORE_WEAK_MAP.set(element, store) |
| 19 | } |
| 20 | return store |
| 21 | } |
| 22 | |
| 23 | export const useRowStore = (element: GridRow) => { |
| 24 | const store = getRowStore(element) |
no test coverage detected
searching dependent graphs…