0 sats \ 7 replies \ @k00b 12 Oct 2023 \ parent \ on: Stacker Saloon
Sweet!
I'm not sure I've pinpointed the exact issue, but making more use of
useCallback
and useMemo
in the MarkdownInput
and UserSuggest
components seems to be helping locally. At least, I see fewer longer commits in the profilerreply
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