I noticed we're putting a useSelector on MessageStore twice here... this is a minor cleanup.
Depends on D14136
Paths
| Differential D14137 Authored by ashoat on Dec 11 2024, 3:45 PM.
Tags None Referenced Files
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
Event TimelineHarbormaster completed remote builds in B33038: Diff 46356.Dec 11 2024, 4:09 PM2024-12-11 16:09:41 (UTC-8) This revision is now accepted and ready to land.Dec 13 2024, 2:47 AM2024-12-13 02:47:24 (UTC-8) Closed by commit rCOMM9095f4869bfa: [lib] Avoid unnecessary useSelector on MessageStore in useGetLastUpdatedTimes (authored by ashoat). · Explain WhyDec 13 2024, 6:13 AM2024-12-13 06:13:50 (UTC-8) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 46437 lib/hooks/latest-message-edit.js
lib/hooks/thread-time.js
|