1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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