mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02: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 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({
|
||||
|
||||
Reference in New Issue
Block a user