-
Notifications
You must be signed in to change notification settings - Fork 4
Feat/int 951 diff view rendering is slow #377
Conversation
@@ -0,0 +1,16 @@ | |||
import { FC } from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the source of this code? is it from Stack Overflow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From github issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@henoktsegayetoptal can you reference the link where this is from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}: JobDiffViewContainerProps) => { | ||
const reversedJob = useMemo(() => jobs.reverse(), [jobs]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reversedJobs
const [viewType, setViewType] = useState<DiffViewType>('side-by-side'); | ||
const [diffData, setDiffData] = useState<DiffData>(() => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it change when reverse jobs change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we do that in useEffect
Optimize Diff view
https://app.claap.io/intuita/screen-recording-2023-05-05-at-11-13-40-am-c-BT2DRbCjzO-8zBEy_iroPLg