mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Remove React memo from preview pane
GitOrigin-RevId: 27c953ff7727a7898587d9e43e18c6cc9295c23b
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
import React, { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import PreviewToolbar from './preview-toolbar'
|
import PreviewToolbar from './preview-toolbar'
|
||||||
import PreviewLogsPane from './preview-logs-pane'
|
import PreviewLogsPane from './preview-logs-pane'
|
||||||
import PreviewFirstErrorPopUp from './preview-first-error-pop-up'
|
import PreviewFirstErrorPopUp from './preview-first-error-pop-up'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
const PreviewPane = React.memo(function PreviewPane({
|
function PreviewPane({
|
||||||
compilerState,
|
compilerState,
|
||||||
onClearCache,
|
onClearCache,
|
||||||
onRecompile,
|
onRecompile,
|
||||||
@@ -139,7 +139,7 @@ const PreviewPane = React.memo(function PreviewPane({
|
|||||||
) : null}
|
) : null}
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
})
|
}
|
||||||
|
|
||||||
PreviewPane.propTypes = {
|
PreviewPane.propTypes = {
|
||||||
compilerState: PropTypes.shape({
|
compilerState: PropTypes.shape({
|
||||||
|
|||||||
Reference in New Issue
Block a user