Page MenuHomePhabricator

[web] Migrate crypto store to shared worker
ClosedPublic

Authored by michal on Mar 19 2024, 5:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 24, 12:40 AM
Unknown Object (File)
Tue, Dec 24, 12:40 AM
Unknown Object (File)
Tue, Dec 24, 12:40 AM
Unknown Object (File)
Tue, Dec 24, 12:40 AM
Unknown Object (File)
Tue, Dec 24, 12:40 AM
Unknown Object (File)
Thu, Nov 28, 8:34 PM
Unknown Object (File)
Nov 25 2024, 4:51 AM
Unknown Object (File)
Nov 25 2024, 4:41 AM
Subscribers

Details

Summary

ENG-6655 : Migrate cryptoStore from redux

Previous diffs modified the code so that they use crypto data in shared worker instead of the data in redux. Now we can migrate the crypto accounts from redux to the shared worker.

Depends on D11348

Test Plan

Run migration, make sure that the the data that was in redux matches the data in shared worker. Flow.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

web/redux/crypto-store-reducer.js
16–19 ↗(On Diff #38169)

In these cases the user should get logged out and the database cleanup will be triggered which will clear the crypto store (both the persisted data in db and the in-memory data).

kamil added inline comments.
web/redux/persist.js
265 ↗(On Diff #38169)

this is because of the fact that at this time cryptoStore is not in AppState anymore, is that correct?

web/types/worker-types.js
121 ↗(On Diff #38169)

Would be nice if could add some comment explaining this

This revision is now accepted and ready to land.Mar 19 2024, 8:55 AM

Added a comment

web/redux/persist.js
265 ↗(On Diff #38169)

Yep