Optimize Message rendering
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user