Page MenuHomePhabricator

[lib] Avoid unnecessary useSelector on MessageStore in useGetLastUpdatedTimes
ClosedPublic

Authored by ashoat on Dec 11 2024, 3:45 PM.
Tags
None
Referenced Files
F6091959: D14137.id46356.diff
Mon, Apr 21, 2:02 AM
F6086119: D14137.id.diff
Sun, Apr 20, 11:53 PM
F6060954: D14137.diff
Sun, Apr 20, 9:44 AM
Unknown Object (File)
Mon, Apr 14, 7:49 AM
Unknown Object (File)
Mar 11 2025, 4:16 PM
Unknown Object (File)
Mar 11 2025, 11:42 AM
Unknown Object (File)
Mar 2 2025, 10:48 PM
Unknown Object (File)
Feb 26 2025, 4:45 AM
Subscribers
None

Details

Summary

I noticed we're putting a useSelector on MessageStore twice here... this is a minor cleanup.

Depends on D14136

Test Plan

I tested this task by playing around with the ChatThreadList on mobile while using a stopwatch to measure how long various operations took. I tested the updated code 3 times against both the most recent Testflight build as well as master. I found that performance was approximately the same as before. I tested scrolling down, selecting threads that were read, selecting threads that were unread, and search.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable