From 4e1f98989d281fdec19eb39b00340da4790c1243 Mon Sep 17 00:00:00 2001 From: YuJian920 Date: Sat, 23 Apr 2022 19:28:28 +0800 Subject: [PATCH] vault backup: 2022-04-23 19:28:28 --- .obsidian/plugins/obsidian-git/data.json | 2 +- React 的那些事/React 性能优化碎片记录.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 React 的那些事/React 性能优化碎片记录.md diff --git a/.obsidian/plugins/obsidian-git/data.json b/.obsidian/plugins/obsidian-git/data.json index c6225b3..c484db5 100644 --- a/.obsidian/plugins/obsidian-git/data.json +++ b/.obsidian/plugins/obsidian-git/data.json @@ -3,7 +3,7 @@ "autoCommitMessage": "vault backup: {{date}}", "commitDateFormat": "YYYY-MM-DD HH:mm:ss", "autoSaveInterval": 5, - "autoPullInterval": 0, + "autoPullInterval": 1, "autoPullOnBoot": false, "disablePush": false, "pullBeforePush": true, diff --git a/React 的那些事/React 性能优化碎片记录.md b/React 的那些事/React 性能优化碎片记录.md new file mode 100644 index 0000000..4575654 --- /dev/null +++ b/React 的那些事/React 性能优化碎片记录.md @@ -0,0 +1,4 @@ +父组件命中性能优化,子组件才有可能命中性能优化 +该如何比较 props + 1. 全等比较 --- 高效、不易命中 + 2. 浅比较 --- 不高效,易命中 \ No newline at end of file