MCPcopy Create free account
hub / github.com/PatoSala/react-native-blocks / updateBlockData

Function updateBlockData

packages/core/src/core/updateBlock.ts:10–13  ·  view source on GitHub ↗
(block: Block, updatedData: Partial<Block>)

Source from the content-addressed store, hash-verified

8
9// Temporary: Must find a dynic way to find out this types in case a custom text based block is also added.
10export function updateBlockData(block: Block, updatedData: Partial<Block>) {
11 const updatedBlock = { ...block, ...updatedData };
12 return updatedBlock;
13}
14
15/**
16 * Inserts a new block ID into the given contentArray.

Callers 15

insertBlockFunction · 0.90
insertBlockV2Function · 0.90
splitBlockFunction · 0.90
mergeBlockFunction · 0.90
removeBlockFunction · 0.90
moveBlockFunction · 0.90
turnBlockIntoFunction · 0.90
updateBlockV2Function · 0.90
handleOnBlurFunction · 0.90
handleOnKeyPressFunction · 0.90
handleSubmitEditingFunction · 0.90
pickImageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected