I noticed we're putting a useSelector on MessageStore twice here... this is a minor cleanup.
Depends on D14136
Differential D14137
[lib] Avoid unnecessary useSelector on MessageStore in useGetLastUpdatedTimes ashoat on Wed, Dec 11, 3:45 PM. Authored by Tags None Referenced Files
Subscribers None
Details I noticed we're putting a useSelector on MessageStore twice here... this is a minor cleanup. Depends on D14136 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
|