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

Function getRowStore

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

Source from the content-addressed store, hash-verified

10}
11
12export 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
23export const useRowStore = (element: GridRow) => {
24 const store = getRowStore(element)

Callers 3

useRowStoreFunction · 0.85
store.tsFile · 0.85

Calls 2

getMethod · 0.80
createFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…