From 463cbf0bc8775d2ac2213098c6aab091c00194ea Mon Sep 17 00:00:00 2001 From: Paoda Date: Wed, 13 Feb 2019 16:09:47 -0600 Subject: [PATCH] Comment written about serious bug Unable to replicate atm so no immediate fix incoming. Keeping notice for future reference. --- src/components/Body.js | 6 ++++-- src/melodii/MusicPlayer.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Body.js b/src/components/Body.js index e121844..e0d5893 100644 --- a/src/components/Body.js +++ b/src/components/Body.js @@ -29,10 +29,12 @@ export default class Body extends React.Component { this.initialize(); } shouldComponentUpdate(nextProps, state) { - return this.state.table.id !== state.table.id; + if (this.state.table.id) return this.state.table.id !== state.table.id; + // On Feb 13 2019 Had problem wehre this.state.table.id was undefined. + // Unable to replicate issue, but it's a serous one. Probably should fix this yeah? } render() { - console.warn("Render:", this.state.table); + console.log("Render TableID: " + this.state.table.id); return (