mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-13 15:17:07 +00:00
Remove React memo from preview pane
GitOrigin-RevId: 27c953ff7727a7898587d9e43e18c6cc9295c23b
This commit is contained in:
parent
4e384e0c3b
commit
55ca4783fb
1 changed files with 3 additions and 3 deletions
|
@ -1,11 +1,11 @@
|
|||
import React, { useState } from 'react'
|
||||
import { useState } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import PreviewToolbar from './preview-toolbar'
|
||||
import PreviewLogsPane from './preview-logs-pane'
|
||||
import PreviewFirstErrorPopUp from './preview-first-error-pop-up'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
const PreviewPane = React.memo(function PreviewPane({
|
||||
function PreviewPane({
|
||||
compilerState,
|
||||
onClearCache,
|
||||
onRecompile,
|
||||
|
@ -139,7 +139,7 @@ const PreviewPane = React.memo(function PreviewPane({
|
|||
) : null}
|
||||
</>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
PreviewPane.propTypes = {
|
||||
compilerState: PropTypes.shape({
|
||||
|
|
Loading…
Add table
Reference in a new issue