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

Function updateQuery

packages/shared/src/hooks/input/useMarkdownInput.ts:285–295  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

283 const mentions = data?.recommendedMentions;
284
285 const updateQuery = (value: string | undefined) => {
286 if (!isMentionEnabled || value === query) {
287 return;
288 }
289
290 if (isNullOrUndefined(query) && !isNullOrUndefined(value)) {
291 setOffset(getCaretOffset(textarea));
292 }
293
294 setQuery(value);
295 };
296
297 const updateEmojiQuery = (value: string | undefined) => {
298 if (

Callers 3

onApplyMentionFunction · 0.85
onMentionCommandFunction · 0.85
checkMentionFunction · 0.85

Calls 2

isNullOrUndefinedFunction · 0.90
getCaretOffsetFunction · 0.90

Tested by

no test coverage detected