MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / onFileChanged

Function onFileChanged

src/pages/markdownPreview/index.js:275–278  ·  view source on GitHub ↗
(changedFile)

Source from the content-addressed store, hash-verified

273 };
274
275 const onFileChanged = (changedFile) => {
276 if (changedFile?.id !== previewState.file?.id) return;
277 void render();
278 };
279
280 const onFileRenamed = (renamedFile) => {
281 if (renamedFile?.id !== previewState.file?.id) return;

Callers

nothing calls this directly

Calls 1

renderFunction · 0.70

Tested by

no test coverage detected