MCPcopy Create free account
hub / github.com/dailydotdev/apps / onUpdate

Function onUpdate

packages/shared/src/hooks/input/useMarkdownInput.ts:219–228  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

217 }, [input, draftStorageKey]);
218
219 const onUpdate = (value: string) => {
220 if (!dirtyRef.current) {
221 dirtyRef.current = true;
222 }
223
224 setInput(value);
225 if (onValueUpdate) {
226 onValueUpdate(value);
227 }
228 };
229
230 const { uploadedCount, queueCount, pushUpload, startUploading } =
231 useSyncUploader({

Callers 3

useMarkdownInputFunction · 0.70
onInputFunction · 0.70
LinksInputFunction · 0.50

Calls 1

setInputFunction · 0.85

Tested by

no test coverage detected