Page MenuHomePhabricator

D7766.diff
No OneTemporary

D7766.diff

diff --git a/landing/landing.react.js b/landing/landing.react.js
--- a/landing/landing.react.js
+++ b/landing/landing.react.js
@@ -76,15 +76,21 @@
}
}, [onKeyservers, onPrivacy, onSupport, onTerms, onTeam, onInvestors, onQR]);
- let header = <Header />;
- if (onQR) {
- header = null;
- }
+ const header = React.useMemo(() => {
+ if (onQR) {
+ return null;
+ }
- let footer = <Footer />;
- if (onQR) {
- footer = null;
- }
+ return <Header />;
+ }, [onQR]);
+
+ const footer = React.useMemo(() => {
+ if (onQR) {
+ return null;
+ }
+
+ return <Footer />;
+ }, [onQR]);
return (
<div className={css.container}>

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 5, 5:44 AM (14 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2614801
Default Alt Text
D7766.diff (677 B)

Event Timeline