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

Function handleStackItemMeta

packages/plugins/yjs/src/plugin/with-history.ts:120–128  ·  view source on GitHub ↗
(origin: unknown, stackItem: HistoryStackItem)

Source from the content-addressed store, hash-verified

118 e.isLocalOrigin = origin => origin === e.withoutSavingOrigin || isLocalOrigin(origin)
119
120 const handleStackItemMeta = (origin: unknown, stackItem: HistoryStackItem) => {
121 const meta = HistoryTransactionMeta.get(origin)
122 if (meta) {
123 for (const [key, value] of meta) {
124 stackItem.meta.set(key, value)
125 }
126 }
127 HistoryTransactionMeta.delete(origin)
128 }
129
130 const handleStackItemAdded = ({
131 stackItem,

Callers 2

handleStackItemAddedFunction · 0.85
handleStackItemUpdatedFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…