added comments to prevent further changes

This commit is contained in:
Palanikannan1437 2023-12-08 16:42:37 +05:30 committed by rahulramesha
parent c68ade11ec
commit 29e8e6c997
3 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,8 @@ export const IssueDescriptionForm: FC<IssueDetailsProps> = (props) => {
description_html: issue.description_html, description_html: issue.description_html,
}); });
// adding issue.description_html or issue.name to dependency array causes
// editor rerendering on every save
useEffect(() => { useEffect(() => {
if (issue.id) { if (issue.id) {
setLocalIssueDescription({ id: issue.id, description_html: issue.description_html }); setLocalIssueDescription({ id: issue.id, description_html: issue.description_html });

View File

@ -87,6 +87,8 @@ export const PeekOverviewIssueDetails: FC<IPeekOverviewIssueDetails> = (props) =
description_html: issue.description_html, description_html: issue.description_html,
}); });
// adding issue.description_html or issue.name to dependency array causes
// editor rerendering on every save
useEffect(() => { useEffect(() => {
if (issue.id) { if (issue.id) {
setLocalIssueDescription({ id: issue.id, description_html: issue.description_html }); setLocalIssueDescription({ id: issue.id, description_html: issue.description_html });

View File

@ -152,6 +152,8 @@ const PageDetailsPage: NextPageWithLayout = observer(() => {
} }
}, [isSubmitting, setShowAlert]); }, [isSubmitting, setShowAlert]);
// adding pageDetails.description_html to dependency array causes
// editor rerendering on every save
useEffect(() => { useEffect(() => {
if (pageDetails?.description_html) { if (pageDetails?.description_html) {
setLocalIssueDescription({ id: pageId as string, description_html: pageDetails.description_html }); setLocalIssueDescription({ id: pageId as string, description_html: pageDetails.description_html });