Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3485706
D3678.id11348.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
494 B
Referenced Files
None
Subscribers
None
D3678.id11348.diff
View Options
diff --git a/web/components/menu.react.js b/web/components/menu.react.js
--- a/web/components/menu.react.js
+++ b/web/components/menu.react.js
@@ -58,9 +58,7 @@
return () => window.removeEventListener('resize', updatePosition);
}, [updatePosition]);
- // useLayoutEffect is necessary so that the menu position is immediately
- // updated in the first render of component
- React.useLayoutEffect(() => {
+ React.useEffect(() => {
updatePosition();
}, [updatePosition]);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 12:36 AM (21 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2674887
Default Alt Text
D3678.id11348.diff (494 B)
Attached To
Mode
D3678: [web] [fix] [ENG-986] replace useLayoutEffect with useEffect
Attached
Detach File
Event Timeline
Log In to Comment