MCPcopy Create free account
hub / github.com/share/sharedb / apply

Function apply

test/client/deserialized-type.js:65–69  ·  view source on GitHub ↗
(data, op)

Source from the content-addressed store, hash-verified

63// return deserialized data when passed deserialized data or serialized data
64// when passed serialized data
65function apply(data, op) {
66 return (data instanceof Node) ?
67 deserializedApply(data, op) :
68 serializedApply(data, op);
69}
70
71// Deserialized apply is used in the client for all client submitted and
72// incoming ops. It should apply with the snapshot in the deserialized format

Callers

nothing calls this directly

Calls 2

deserializedApplyFunction · 0.85
serializedApplyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…