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

Function onUpdateFileName

packages/web/src/components/cells/code.tsx:223–233  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

221 }, [cell.id, channel, updateCellOnClient]);
222
223 function onUpdateFileName(filename: string) {
224 if (!channel) {
225 return;
226 }
227
228 updateCellOnClient({ ...cell, filename });
229 channel.push('cell:rename', {
230 cellId: cell.id,
231 filename,
232 });
233 }
234
235 useEffect(() => {
236 if (!channel) {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected