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)
Tue, Nov 19, 10:29 AM
Unknown Object (File)
Tue, Nov 5, 8:58 PM
Unknown Object (File)
Oct 16 2024, 11:28 PM
Unknown Object (File)
Oct 16 2024, 8:37 AM
Unknown Object (File)
Oct 14 2024, 4:34 PM
Unknown Object (File)
Oct 14 2024, 1:35 AM
Unknown Object (File)
Oct 14 2024, 1:35 AM
Unknown Object (File)
Oct 14 2024, 1:35 AM

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
No Lint Coverage
Unit
No Test Coverage

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