HomePhabricator
Diffusion Comm b1050c45b384

[native] Purge the store after clearing the DB

Description

[native] Purge the store after clearing the DB

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.

Reviewers: kamil, inka

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D11688

Details

Provenance
tomekAuthored on Apr 18 2024, 7:35 AM
Reviewer
kamil
Differential Revision
D11688: [native] Purge the store after clearing the DB
Parents
rCOMMb9c03cdb74fb: [lib] introduce fetchFollowedFarcasterChannels to neynar client class
Branches
Unknown
Tags
Unknown