Page MenuHomePhabricator

[native] Purge the store after clearing the DB
ClosedPublic

Authored by tomek on Thu, Apr 18, 7:36 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 7:10 PM
Unknown Object (File)
Fri, Apr 26, 11:21 AM
Unknown Object (File)
Fri, Apr 26, 10:19 AM
Unknown Object (File)
Fri, Apr 26, 8:26 AM
Unknown Object (File)
Wed, Apr 24, 10:20 AM
Unknown Object (File)
Tue, Apr 23, 11:36 PM
Unknown Object (File)
Thu, Apr 18, 6:25 PM
Unknown Object (File)
Thu, Apr 18, 6:25 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable