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 ashoat on Feb 25 2025, 12:22 AM. Authored by Tags None Referenced Files
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
|