1
0
Fork 0
mirror of synced 2024-06-30 20:10:54 +12:00

Prevent unecessary updates to component settings to improve performance

This commit is contained in:
Andrew Kingston 2021-11-16 13:38:47 +00:00
parent b1f5782984
commit 9728c6c947

View file

@ -620,6 +620,9 @@ export const getFrontendStore = () => {
if (!name || !component) {
return
}
if (component[name] === value) {
return
}
component[name] = value
store.update(state => {
state.selectedComponentId = component._id