MCPcopy Create free account
hub / github.com/editablejs/editable / useRowContentHeight

Function useRowContentHeight

packages/plugins/table/src/row/store.ts:34–43  ·  view source on GitHub ↗
(element: GridRow)

Source from the content-addressed store, hash-verified

32}
33
34export const useRowContentHeight = (element: GridRow) => {
35 const store = useRowStore(element)
36 const state = store.getState()
37 return [
38 state.contentHeight,
39 (height: number) => {
40 store.setState({ contentHeight: height })
41 },
42 ] as const
43}
44
45export const useTableRowContentHeights = (rows: GridRow[]) => {
46 const refresh = useCallback(() => {

Callers

nothing calls this directly

Calls 1

useRowStoreFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…