aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/utils.js
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2017-10-29 15:01:50 +0100
committerGitHub <noreply@github.com>2017-10-29 15:01:50 +0100
commit731b40ce0f31e64e9bff87e00d7bfbee12138d47 (patch)
tree3b072f0518b14bdc6ffd94dacb31532cb4e89558 /web/src/js/utils.js
parentb32dff7520b67f6f6a93627363d91d4f30cad956 (diff)
parent9d514330cad64e589987b5e539809ae95d14e137 (diff)
downloadmitmproxy-731b40ce0f31e64e9bff87e00d7bfbee12138d47.tar.gz
mitmproxy-731b40ce0f31e64e9bff87e00d7bfbee12138d47.tar.bz2
mitmproxy-731b40ce0f31e64e9bff87e00d7bfbee12138d47.zip
Merge pull request #2608 from mhils/web
[web] minor improvements, move options editor
Diffstat (limited to 'web/src/js/utils.js')
-rw-r--r--web/src/js/utils.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/web/src/js/utils.js b/web/src/js/utils.js
index 7c1719ae..80f0c42a 100644
--- a/web/src/js/utils.js
+++ b/web/src/js/utils.js
@@ -1,6 +1,5 @@
import _ from 'lodash'
import React from 'react'
-import shallowEqual from 'shallowequal'
window._ = _;
window.React = React;
@@ -126,13 +125,9 @@ export function getDiff(obj1, obj2) {
return result
}
-export const pure = renderFn => class extends React.Component {
+export const pure = renderFn => class extends React.PureComponent {
static displayName = renderFn.name
- shouldComponentUpdate(nextProps) {
- return !shallowEqual(this.props, nextProps)
- }
-
render() {
return renderFn(this.props)
}