Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/SplootCode/splootcode
/ setRootNode
Method
setRootNode
packages/editor/src/context/undoWatcher.ts:69–73 ·
view source on GitHub ↗
(rootNode: SplootNode)
Source
from the content-addressed store, hash-verified
67
}
68
69
setRootNode(rootNode: SplootNode) {
70
this.rootNode = rootNode
71
this.enabled = true
72
this.triggerSnapshot()
73
}
74
75
triggerSnapshot(delay = 0) {
76
if
(!this.enabled) {
Callers
4
dict_multiselect.test.ts
File · 0.45
fragment_insert.test.ts
File · 0.45
edit_actions.test.ts
File · 0.45
multiselect.test.ts
File · 0.45
Calls
1
triggerSnapshot
Method · 0.95
Tested by
no test coverage detected