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

Function updateQuery

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

Source from the content-addressed store, hash-verified

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