mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #4188 from overleaf/ae-memo
Improve React performance by memoizing components and values GitOrigin-RevId: 805278b8b7ac04c3dc4b078fa53cc0e3770d261b
This commit is contained in:
@@ -9,7 +9,7 @@ import localStorage from '../../../infrastructure/local-storage'
|
||||
import withErrorBoundary from '../../../infrastructure/error-boundary'
|
||||
import { useEditorContext } from '../../../shared/context/editor-context'
|
||||
|
||||
function OutlinePane({
|
||||
const OutlinePane = React.memo(function OutlinePane({
|
||||
isTexFile,
|
||||
outline,
|
||||
jumpToLine,
|
||||
@@ -73,7 +73,7 @@ function OutlinePane({
|
||||
) : null}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
OutlinePane.propTypes = {
|
||||
isTexFile: PropTypes.bool.isRequired,
|
||||
|
||||
Reference in New Issue
Block a user