From d284a3d243388a25b6beeeace3e800b38195f4d4 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Thu, 16 Nov 2017 21:05:05 -0800 Subject: [PATCH] Use PureComponent default shouldcomponentUpdate in OperationContainer --- src/core/containers/OperationContainer.jsx | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/core/containers/OperationContainer.jsx b/src/core/containers/OperationContainer.jsx index f1551b7e..14dc6d09 100644 --- a/src/core/containers/OperationContainer.jsx +++ b/src/core/containers/OperationContainer.jsx @@ -97,26 +97,6 @@ export default class OperationContainer extends PureComponent { } } - shouldComponentUpdate(nextProps, nextState) { - const render = this.state.tryItOutEnabled !== nextState.tryItOutEnabled - || this.state.executeInProgress !== nextState.executeInProgress - || this.props.op !== nextProps.op - || this.props.tag !== nextProps.tag - || this.props.path !== nextProps.path - || this.props.method !== nextProps.method - || this.props.operationId !== nextProps.operationId - || this.props.showSummary !== nextProps.showSummary - || this.props.isShown !== nextProps.isShown - || this.props.jumpToKey !== nextProps.jumpToKey - || this.props.allowTryItOut !== nextProps.allowTryItOut - || this.props.displayOperationId !== nextProps.displayOperationId - || this.props.displayRequestDuration !== nextProps.displayRequestDuration - || this.props.response !== nextProps.response - || this.props.request !== nextProps.request - || this.props.isDeepLinkingEnabled !== nextProps.isDeepLinkingEnabled - return render - } - toggleShown =() => { let { layoutActions, isShownKey, isShown } = this.props layoutActions.show(isShownKey, !isShown)