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

Function useRowStore

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

Source from the content-addressed store, hash-verified

21}
22
23export const useRowStore = (element: GridRow) => {
24 const store = getRowStore(element)
25 useEffect(() => {
26 return () => {
27 ROW_STORE_WEAK_MAP.get(element)?.destroy()
28 ROW_STORE_WEAK_MAP.delete(element)
29 }
30 }, [element])
31 return store
32}
33
34export const useRowContentHeight = (element: GridRow) => {
35 const store = useRowStore(element)

Callers 1

useRowContentHeightFunction · 0.85

Calls 3

getRowStoreFunction · 0.85
getMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…