HomePhabricator

[Cashtab] Convert wallet context to ts

Description

[Cashtab] Convert wallet context to ts

Summary:
Troubleshooting load speed issues in Cashtab. Need to get typescript at the highest level so I can find any mismatches. Start here.

Cashtab screens load important wallet information from Context. But, because type definitions have not been applied there, we aren't really getting a lot of typescript benefits on our screens.

Implement typescript on context file and at entry point of app. This required also implementing it in our GoogleAnalytics, which is loaded from this screen. We also see many "lint-like" changes in tsx files of app screens -- this is because, before context was updated, they were not actually getting the types of wallet context.

With typescript, implement improved condition check on context loading.

This is part of a broader effort to debottleneck Cashtab load times.

Test Plan: npm test, arc lint no ts errors

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

Differential Revision: https://reviews.bitcoinabc.org/D17288

Details

Provenance
bytesofmanAuthored on Dec 3 2024, 21:10
teamcityPushed on Dec 5 2024, 22:18
Parents
rSTAGING805a0f137bf6: [64-bit ints] Move `{Add,Sub}Int63Overflow(Emulated)` impl to cpp file
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/51423
Reverted By
D17297: Revert "[Cashtab] Convert wallet context to ts"