MCPcopy Create free account
hub / github.com/srcbookdev/srcbook / updateCellOnServer

Function updateCellOnServer

packages/web/src/routes/session.tsx:230–238  ·  view source on GitHub ↗
(cell: CellType, updates: CellUpdateAttrsType)

Source from the content-addressed store, hash-verified

228 }, [channel, updateCell]);
229
230 function updateCellOnServer(cell: CellType, updates: CellUpdateAttrsType) {
231 if (!channel) {
232 return;
233 }
234 channel.push('cell:update', {
235 cellId: cell.id,
236 updates,
237 });
238 }
239
240 async function createNewCell(type: 'code' | 'markdown' | 'generate-ai', index: number) {
241 if (!channel) {

Callers 1

CodeEditorFunction · 0.50

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected