Function
updateCellOnServer
(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) { |
Tested by
no test coverage detected