Page MenuHomePhabricator

[native] Purge the store after clearing the DB
ClosedPublic

Authored by tomek on Apr 18 2024, 7:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 28, 7:54 PM
Unknown Object (File)
Thu, Nov 28, 4:45 PM
Unknown Object (File)
Sun, Nov 3, 7:19 AM
Unknown Object (File)
Oct 27 2024, 4:32 AM
Unknown Object (File)
Oct 12 2024, 9:39 PM
Unknown Object (File)
Oct 12 2024, 9:39 PM
Unknown Object (File)
Oct 12 2024, 9:39 PM
Unknown Object (File)
Oct 12 2024, 9:39 PM
Subscribers

Details

Summary

clearSensitiveData clears the token, which causes an event to be emitted, which causes AccessTokenHandler to dispatch a new action. This action is dispatched after the store is purged and causes a new state to be persisted. The solution is to purge after the clearing of the DB is finished.

https://linear.app/comm/issue/ENG-7788/state-difference-after-state-wipe

Test Plan

Wipe the state, start the app - there should be no state diff.

Diff Detail

Repository
rCOMM Comm
Branch
notifs-init
Lint
No Lint Coverage
Unit
No Test Coverage