refactor: stash long list updates

This commit is contained in:
zerosoul
2022-06-01 10:59:41 +08:00
parent aa7c91416c
commit 5c6aed7165
12 changed files with 274 additions and 221 deletions
+4
View File
@@ -87,8 +87,10 @@ function Message({
const pinInfo = getPinInfo(mid);
// return null;
const _key = properties?.local_id || mid;
return (
<StyledWrapper
key={_key}
onContextMenu={handleContextMenuEvent}
data-msg-mid={mid}
ref={inviewRef}
@@ -97,6 +99,8 @@ function Message({
} ${contextMenuVisible ? "contextVisible" : ""} `}
>
<Tippy
key={_key}
popperOptions={{ strategy: "fixed" }}
disabled={readOnly}
interactive
placement="left"