Page MenuHomePhabricator

[lib] Replace `threadInChatList` with `useThreadInChatList` in `useWatchThread`
ClosedPublic

Authored by atul on May 9 2024, 5:58 PM.
Tags
None
Referenced Files
F3370204: D11981.diff
Tue, Nov 26, 1:22 AM
Unknown Object (File)
Thu, Nov 21, 2:21 AM
Unknown Object (File)
Thu, Nov 21, 2:21 AM
Unknown Object (File)
Fri, Nov 15, 4:58 AM
Unknown Object (File)
Sun, Nov 10, 11:41 AM
Unknown Object (File)
Fri, Nov 8, 7:16 PM
Unknown Object (File)
Fri, Nov 8, 7:16 PM
Unknown Object (File)
Oct 25 2024, 5:32 PM
Subscribers
None

Details

Summary

Similar to rest of stack, but for useWatchThread.


Depends on D11980

Test Plan

flow + close reading

Set log statements in useWatchThread and ensured that values before and after were identical.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.May 9 2024, 6:01 PM
tomek added inline comments.
lib/shared/thread-utils.js
1299–1318 ↗(On Diff #40045)

We usually prefer to call hooks top level, without modifying their result

This revision is now accepted and ready to land.May 10 2024, 3:48 AM