Skip to content

Instantly share code, notes, and snippets.

@darkwing
Created May 23, 2024 14:50
Show Gist options
  • Save darkwing/decd68c3cb11cbe14f27c2f5476cbe7b to your computer and use it in GitHub Desktop.
Save darkwing/decd68c3cb11cbe14f27c2f5476cbe7b to your computer and use it in GitHub Desktop.
console.log('[routes.component.js] componentDidUpdate ---------------------------');
const keyz = Object.keys(this.props);
keyz.forEach((key) => {
if (this.props[key] !== prevProps[key]) {
console.warn('[prop value inequality]: ', key, this.props[key], prevProps[key]);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment