nicolium: memoization fix
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -391,9 +391,14 @@ const Thread = ({
|
|||||||
react: handleHotkeyReact,
|
react: handleHotkeyReact,
|
||||||
};
|
};
|
||||||
|
|
||||||
const children = useMemo(() => renderChildren(thread), [thread, linear, status]);
|
const children = useMemo(() => {
|
||||||
|
const children = renderChildren(thread);
|
||||||
|
|
||||||
if (isModal) children.unshift(<div key='padding' className='h-4' />);
|
if (isModal) children.unshift(<div key='padding' className='h-4' />);
|
||||||
|
|
||||||
|
return children;
|
||||||
|
}, [thread, linear, status, isModal]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setExpandAllStatuses?.(() => {
|
setExpandAllStatuses?.(() => {
|
||||||
expandStatuses(thread);
|
expandStatuses(thread);
|
||||||
|
|||||||
Reference in New Issue
Block a user