Page MenuHomePhabricator

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

Authored by atul on Sep 11 2023, 3:51 PM.
Tags
None
Referenced Files
F3348303: D9136.diff
Fri, Nov 22, 2:24 PM
Unknown Object (File)
Sun, Oct 27, 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
Unknown Object (File)
Oct 19 2024, 2:07 AM
Unknown Object (File)
Oct 13 2024, 10:20 PM
Unknown Object (File)
Oct 8 2024, 10:01 PM
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