MCPcopy
hub / github.com/mobxjs/mobx-state-tree / getStateTreeNode

Function getStateTreeNode

src/core/node/node-utils.ts:88–94  ·  view source on GitHub ↗
(value: IAnyStateTreeNode)

Source from the content-addressed store, hash-verified

86 * @hidden
87 */
88export function getStateTreeNode(value: IAnyStateTreeNode): AnyObjectNode {
89 if (!isStateTreeNode(value)) {
90 // istanbul ignore next
91 throw new MstError(`Value ${value} is no MST Node`)
92 }
93 return value.$treenode!
94}
95
96/**
97 * @internal

Callers 15

constructorMethod · 0.85
addTargetNodeWatcherFunction · 0.85
isValidSnapshotMethod · 0.85
putMethod · 0.85
willChangeMethod · 0.85
didChangeMethod · 0.85
willChangeMethod · 0.85
didChangeMethod · 0.85
reconcileArrayChildrenFunction · 0.85
getNewNodeFunction · 0.85
areSameFunction · 0.85
objectTypeToStringFunction · 0.85

Calls 1

isStateTreeNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…