Page MenuHomePhabricator

[native] Replace `scrollPos` instance variable w/ ref
ClosedPublic

Authored by atul on Sep 11 2023, 3:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 23, 2:48 AM
Unknown Object (File)
Fri, Dec 20, 6:07 AM
Unknown Object (File)
Sat, Dec 7, 9:15 PM
Unknown Object (File)
Nov 22 2024, 2:24 PM
Unknown Object (File)
Oct 27 2024, 5:42 PM
Unknown Object (File)
Oct 19 2024, 2:14 AM
Unknown Object (File)
Oct 19 2024, 2:14 AM
Unknown Object (File)
Oct 19 2024, 2:14 AM
Subscribers
None

Details

Summary

As part of converting ChatThreadList to a functional component we'll need to replace the scrollPos instance variable with a ref.


Depends on D9135

Test Plan

Things seem to continue to work as expected. Haven't used useRef a whole lot, so would be good to get feedback from reviewers w/ more familiarity.

Logging values seems to result in correct values:

ff537d.png (562×1 px, 380 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable