MCPcopy Index your code
hub / github.com/blocks/blocks / editCode

Function editCode

packages/blocks-ui/src/providers/code.js:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 }
44
45 const editCode = rawCode => {
46 const code = transforms.addTuid(rawCode)
47
48 setCodeState({
49 ...codeState,
50 ...updateCode(code)
51 })
52 }
53
54 const setCurrentElementId = elementId => {
55 if (!elementId) {

Callers 1

onCodeChangeFunction · 0.85

Calls 1

updateCodeFunction · 0.85

Tested by

no test coverage detected