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)
Fri, Sep 27, 8:23 AM
Unknown Object (File)
Wed, Sep 11, 6:24 PM
Unknown Object (File)
Wed, Sep 11, 6:23 PM
Unknown Object (File)
Wed, Sep 11, 6:23 PM
Unknown Object (File)
Wed, Sep 11, 6:17 PM
Unknown Object (File)
Aug 26 2024, 7:50 AM
Unknown Object (File)
Aug 26 2024, 1:46 AM
Unknown Object (File)
Aug 25 2024, 9:30 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