Page MenuHomePhabricator

[lib] [feat] add useIsomorphicLayoutEffect hook
ClosedPublic

Authored by benschac on Apr 10 2022, 8:52 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 1:04 PM
Unknown Object (File)
Tue, Nov 5, 8:44 PM
Unknown Object (File)
Wed, Oct 30, 11:36 AM
Unknown Object (File)
Mon, Oct 28, 8:13 PM
Unknown Object (File)
Sat, Oct 26, 11:25 AM
Unknown Object (File)
Oct 21 2024, 6:24 AM
Unknown Object (File)
Oct 16 2024, 3:53 AM
Unknown Object (File)
Oct 14 2024, 1:17 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