mirror of
https://github.com/luxfi/wallet.git
synced 2026-07-27 03:37:41 +00:00
1ddc0df2581c59b438451b1c9a4489cbe9d79c45
The wallet keeps `isUnlocked` + the plaintext mnemonic in memory ONLY (never persisted — see the auth store's partialize), so ANY full-document reload wipes the session and bounces the user back to onboarding. On mobile this made the wallet unusable: every full-reload dashboard action effectively logged you out. - Portfolio dashboard: render the Send / Cross-Chain / Earn / Manage Keys quick-action cards as react-router <Link> (client-side soft-nav) instead of full-reload <a href>. A tap pushState-navigates and the in-memory unlock + mnemonic survive. - Audit for other session-dropping full-reload links: Callback's "Back to wallet" recovery link was a raw <a href="/"> — converted to <Link to="/">. Verified at 390x844 (iPhone-class): the 4 cards render with no horizontal overflow (documentElement.scrollWidth == 390); tapping Send soft-navigates to /send with NO document reload (a page sentinel + the zustand auth store both survive, isUnlocked stays true); a full-reload navigation (the prior behavior) wipes the in-memory session — confirming the fix. Co-authored-by: Hanzo Dev <dev@hanzo.ai>
Description
Open Source Lux DeFi Wallet.
187 MiB
Languages
TypeScript
88%
Swift
4.2%
Kotlin
4.1%
JavaScript
1.2%
Go
0.8%
Other
1.6%