Page MenuHomePhabricator

[web] [refactor] [ENG-986] use lib useIsomorphicLayoutEffect
ClosedPublic

Authored by benschac on Apr 10 2022, 8:54 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 29, 6:29 AM
Unknown Object (File)
Wed, Nov 27, 11:17 AM
Unknown Object (File)
Sat, Nov 23, 8:03 PM
Unknown Object (File)
Sat, Nov 23, 7:57 PM
Unknown Object (File)
Sat, Nov 23, 7:48 PM
Unknown Object (File)
Tue, Nov 19, 10:29 AM
Unknown Object (File)
Tue, Nov 5, 8:58 PM
Unknown Object (File)
Oct 16 2024, 11:28 PM

Details

Summary

replace useIsomorphicLayoutEffect and React.useLayout effect with lib

Test Plan

console error shouldn't exist anymore from layout effect. Keyserver and menu button work as expected

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Apr 10 2022, 8:57 AM
Harbormaster failed remote builds in B8044: Diff 11261!
ashoat added reviewers: jacek, tomek.

Leaving this comment for posterity: some earlier discussion / context on D3678

benschac retitled this revision from [web, landing] [refactor] use lib useIsomorphicLayoutEffect to [web, landing] [refactor] [ENG-986] use lib useIsomorphicLayoutEffect.Apr 11 2022, 1:40 PM

@benschac please take a look at my last comment in D3678. The initial solution seems to be ok - it was my mistake. Really sorry for that

benschac retitled this revision from [web, landing] [refactor] [ENG-986] use lib useIsomorphicLayoutEffect to [web] [refactor] [ENG-986] use lib useIsomorphicLayoutEffect.Apr 12 2022, 8:14 AM
This revision is now accepted and ready to land.Apr 13 2022, 2:55 AM