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)
Wed, Mar 12, 9:13 AM
Unknown Object (File)
Tue, Mar 11, 4:49 PM
Unknown Object (File)
Sat, Mar 8, 9:11 AM
Unknown Object (File)
Sat, Mar 8, 9:11 AM
Unknown Object (File)
Sat, Mar 8, 7:30 AM
Unknown Object (File)
Jan 13 2025, 7:07 PM
Unknown Object (File)
Jan 6 2025, 11:07 AM
Unknown Object (File)
Jan 6 2025, 11:07 AM
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