We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c327586 commit f0c999dCopy full SHA for f0c999d
electron/renderer/src/components/Webviews.js
@@ -29,6 +29,17 @@ class Webviews extends Component {
29
super(props);
30
}
31
32
+ shouldComponentUpdate(nextProps) {
33
+ for (const account of nextProps.accounts) {
34
+ const match = this.props.accounts.find((_account) => account.id === _account.id);
35
+ if (!match || match.visible !== account.visible) {
36
+ return true;
37
+ }
38
39
+
40
+ return false;
41
42
43
_getEnvironmentUrl(account) {
44
const envParam = decodeURIComponent(new URL(window.location).searchParams.get('env'));
45
const url = new URL(envParam);
0 commit comments