mattermost-mobile-upstream/app/queries
yasserfaraazkhan 25cd173e43 test(queries): cover user props propagation through observeUser
Written to test whether observeUser dropped emissions — the suspected cause of
the flaky custom-status clear (MM-T4990_4 / MM-T3891), where the database is
correctly cleared but the UI keeps showing the status.

It disproved that: observeUser and observeCurrentUser both deliver the latest
props under sequential writes, 20 rapid successive writes, and a concurrent
currentUserId re-emission that forces the inner switchMap to tear down and
resubscribe. The custom-status defect is therefore somewhere else, and that is
worth keeping recorded.

Kept as regression cover because observePostsById exists precisely because
someone assumed post reactivity worked and it did not.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-17 14:02:24 +05:30
..
app Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00
servers test(queries): cover user props propagation through observeUser 2026-08-17 14:02:24 +05:30