[Dev] Fix logUnequalProps
This commit is contained in:
parent
6a57908045
commit
90e86cfaae
@ -38,10 +38,11 @@ export function logUnequalProps(currentProps: AnyLiteral, newProps: AnyLiteral,
|
|||||||
|
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(msg);
|
console.log(msg);
|
||||||
currentKeys.forEach((res, prop) => {
|
|
||||||
|
for (const prop of currentKeys) {
|
||||||
if (currentProps[prop] !== newProps[prop]) {
|
if (currentProps[prop] !== newProps[prop]) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(debugKey, prop, ':', currentProps[prop], '=>', newProps[prop]);
|
console.log(debugKey, prop, ':', currentProps[prop], '=>', newProps[prop]);
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user