I suspect if might be enough to not
setUserDropdownStyle
and setMentionIndices
on every change. These object literals each have a new reference and trigger a rerender even if the object is functionally identical.reply
I assume you have this change worked up locally? I won't work up a PR. LMK otherwise.
reply
Yep thanks
reply
deleted by author
reply
Yes, I think so, too. Those could only be set when there is a
@
mention query found, not just every change. We only need them to be accurate in that case.reply
deleted by author
reply
useCallback
anduseMemo
in theMarkdownInput
andUserSuggest
components seems to be helping locally. At least, I see fewer longer commits in the profiler