MCPcopy
hub / github.com/srcbookdev/srcbook / updateCellOnServer

Function updateCellOnServer

packages/web/src/components/use-package-json.tsx:96–101  ·  view source on GitHub ↗
(updates: PackageJsonCellUpdateAttrsType)

Source from the content-addressed store, hash-verified

94 }, [channel, npmInstall]);
95
96 function updateCellOnServer(updates: PackageJsonCellUpdateAttrsType) {
97 channel.push('cell:update', {
98 cellId: cell.id,
99 updates,
100 });
101 }
102
103 function onChangeSource(source: string) {
104 const updates = { ...cell, source };

Callers 1

onChangeSourceFunction · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected