-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(app): save store reactivity progress
- Loading branch information
Showing
5 changed files
with
56 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import {derived, type Readable, writable} from "svelte/store"; | ||
import type {UserAddresses} from "$lib/types.ts"; | ||
import {userAddrCosmos} from "$lib/wallet/cosmos"; | ||
import {userAddrEvm} from "$lib/wallet/evm"; | ||
import {userAddressAptos} from "$lib/wallet/aptos"; | ||
import type {QueryObserverResult} from "@tanstack/query-core"; | ||
|
||
export let userAddress: Readable<UserAddresses> = derived( | ||
[userAddrCosmos, userAddrEvm, userAddressAptos], | ||
([$userAddrCosmos, $userAddrEvm, $userAddressAptos]) => ({ | ||
evm: $userAddrEvm, | ||
cosmos: $userAddrCosmos, | ||
aptos: $userAddressAptos | ||
}) | ||
) | ||
|
||
export let balanceStore = writable<QueryObserverResult<any>[]>([]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters