Optimize Message rendering

This commit is contained in:
Fedor Indutny
2022-12-19 14:33:55 -08:00
committed by GitHub
parent 2d6f13a8c5
commit 5a98fc2f4c
10 changed files with 242 additions and 133 deletions

View File

@@ -291,6 +291,10 @@ export function reducer(
if (action.type === 'items/PUT_EXTERNAL') {
const { payload } = action;
if (state[payload.key] === payload.value) {
return state;
}
return {
...state,
[payload.key]: payload.value,