MCPcopy Create free account
hub / github.com/FormidableLabs/use-editable / getState

Function getState

src/useEditable.ts:245–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

243 }
244 },
245 getState() {
246 const { current: element } = elementRef;
247 const text = toString(element!);
248 const position = getPosition(element!);
249 return { text, position };
250 },
251 }),
252 []
253 );

Callers

nothing calls this directly

Calls 2

toStringFunction · 0.85
getPositionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…