perf: extend fast-deep-equal to remaining call sites (#23845)

This commit is contained in:
Algorithm5838 authored and GitHub committed 2026-04-20 08:26:30 +09:00
1 parent 0d10b946f5
commit 51cd43229c
5 files changed
+15 -10

No files matched your search

@@ -1,6 +1,7 @@
<script lang="ts">
import { marked } from 'marked';
import DOMPurify from 'dompurify';
import equal from 'fast-deep-equal';
marked.use({
breaks: true,
@@ -1257,7 +1258,7 @@
}
if (json) {
if (JSON.stringify(value) !== JSON.stringify(jsonValue)) {
if (!equal(value, jsonValue)) {
editor.commands.setContent(value);
selectTemplate();
}