I noticed that every processServerRequestsActionType was resulting in a new MessageStore. We should avoid mutating the Redux store unless changes are occurring.
Depends on D14401
Differential D14402
[lib] Avoid unnecessarily mutating MessageStore on processServerRequestsActionType Authored by ashoat on Feb 25 2025, 8:22 AM. Tags None Referenced Files None Subscribers None
Details I noticed that every processServerRequestsActionType was resulting in a new MessageStore. We should avoid mutating the Redux store unless changes are occurring. Depends on D14401 I used this patch that adds a bunch of logs and ran a Release build of the iOS app pointed at production on my physical iOS device. The patch includes logs that track when MessageStore changes. I was able to confirm that it's no longer changing as a result of processServerRequestsActionType.
Diff Detail
Event Timeline
| ||||||||||||||||||||||||||||