1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Suppress redundant NoteEditor re-rendering by removing non-changing updates of state.selectedNoteTags (#6470)

This commit is contained in:
Kenichi Kobayashi
2022-06-08 18:34:08 +09:00
committed by GitHub
parent c320d2364e
commit 40bc63e7ea

View File

@@ -1125,7 +1125,9 @@ const reducer = produce((draft: Draft<State> = defaultState, action: any) => {
break;
case 'SET_NOTE_TAGS':
if (!fastDeepEqual(original(draft.selectedNoteTags), action.items)) {
draft.selectedNoteTags = action.items;
}
break;
case 'PLUGINLEGACY_DIALOG_SET':