perf: extend fast-deep-equal to remaining call sites (#23845)
This commit is contained in:
1 parent
0d10b946f5
commit
51cd43229c
5 files changed
+15
-10
No files matched your search
@@ -15,6 +15,7 @@
|
||||
} from '$lib/utils';
|
||||
|
||||
import 'highlight.js/styles/github-dark.min.css';
|
||||
import equal from 'fast-deep-equal';
|
||||
|
||||
import CodeEditor from '$lib/components/common/CodeEditor.svelte';
|
||||
import SvgPanZoom from '$lib/components/common/SVGPanZoom.svelte';
|
||||
@@ -391,7 +392,7 @@
|
||||
$: if (token) {
|
||||
if (token.text !== _token?.text || token.raw !== _token?.raw) {
|
||||
_token = token;
|
||||
} else if (JSON.stringify(token) !== JSON.stringify(_token)) {
|
||||
} else if (!equal(token, _token)) {
|
||||
_token = token;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user