From f4534fd3eb0086a7e0c66b444de78a292ee697ff Mon Sep 17 00:00:00 2001 From: spinmh Date: Thu, 15 Aug 2019 02:19:38 +0200 Subject: [PATCH] Remove manual ShouldComponentUpdate eval --- src/app/pages/Page.jsx | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/app/pages/Page.jsx b/src/app/pages/Page.jsx index 37174da9..76c86c5f 100644 --- a/src/app/pages/Page.jsx +++ b/src/app/pages/Page.jsx @@ -50,19 +50,6 @@ export default class Page extends React.Component { } } - /** - * Pages are 'pure' components that only render when props, state, or context changes. - * This method performs a shallow comparison to determine change. - * - * @param {Object} np Next/Incoming properties - * @param {Object} ns Next/Incoming state - * @param {Object} nc Next/Incoming context - * @return {Boolean} True if props, state, or context has changed - */ - shouldComponentUpdate(np, ns, nc) { - return !shallowEqual(this.props, np) || !shallowEqual(this.state, ns) || !shallowEqual(this.context, nc); - } - /** * Update the window title upon mount */