Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/blocks/blocks
/ onCodeChange
Function
onCodeChange
packages/blocks-ui/src/modes/code.js:26–32 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
24
}, [])
25
26
const
onCodeChange = code => {
27
try {
28
editCode(code)
29
} catch (e) {
30
// do nothing as the errors are displayed in the editor
31
}
32
}
33
34
return
(
35
<CanvasWrap>
Callers
nothing calls this directly
Calls
1
editCode
Function · 0.85
Tested by
no test coverage detected