Page MenuHomePhabricator

[lib] [feat] add useIsomorphicLayoutEffect hook
ClosedPublic

Authored by benschac on Apr 10 2022, 8:52 AM.
Tags
None
Referenced Files
F3643585: D3680.id.diff
Sat, Jan 4, 5:22 PM
F3641990: D3680.diff
Sat, Jan 4, 3:26 PM
F3640235: D3680.id.diff
Sat, Jan 4, 11:32 AM
Unknown Object (File)
Sat, Jan 4, 3:42 AM
Unknown Object (File)
Thu, Dec 19, 4:25 AM
Unknown Object (File)
Thu, Dec 19, 4:25 AM
Unknown Object (File)
Thu, Dec 19, 4:25 AM
Unknown Object (File)
Thu, Dec 19, 4:24 AM

Details

Summary

Add useIsomorphicLayoutEffect hook to lib folder

Test Plan

N/A it's not used yet. It's an exact copy of useIsomorphicLayoutEffect in keyserver.react.js in landing

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat requested changes to this revision.Apr 10 2022, 7:22 PM
  1. The filename clearly doesn't match conventions in our codebase
  2. Should we update the place this is copied from (in landing) to import from here now?
This revision now requires changes to proceed.Apr 10 2022, 7:22 PM

Ah my request #2 above is handled in D3681. I would've made this diff a "factor out" diff, and D3681 the "use in new place" diff. But no need to refactor now

Sorry about #1. I was working on this late last Friday and I should have spent a bit more time thinking through the diff.

This revision is now accepted and ready to land.Apr 11 2022, 8:37 AM