aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-22 11:31:01 -0700
committerAdam Soltys <[email protected]>2024-10-22 11:31:01 -0700
commit8f5783b3b11316a15ed715ae8186b6149e8a2a28 (patch)
tree287bbfaf70fd3b8611c5cde499e1382a5471981a /src
parentc56e731e41e348d1ffa6070e4b3506b52ed67a9e (diff)
downloadcoinos-ui-8f5783b3b11316a15ed715ae8186b6149e8a2a28.tar.gz
coinos-ui-8f5783b3b11316a15ed715ae8186b6149e8a2a28.zip
more preloading
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/[username]/(profile)/+page.svelte6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte
index 8ee4d7cf..bd9537b1 100644
--- a/src/routes/(app)/[username]/(profile)/+page.svelte
+++ b/src/routes/(app)/[username]/(profile)/+page.svelte
@@ -6,9 +6,15 @@
import Items from "$comp/Items.svelte";
import { t } from "$lib/translations";
import { installPrompt } from "$lib/store";
+ import { afterNavigate, preloadData } from "$app/navigation";
export let data;
+ afterNavigate(() => {
+ preloadData(`/${user.username}/receive`);
+ preloadData("/send");
+ });
+
let { accounts, subject, user, items, rates } = data;
$: ({ currency } = subject);
$: rate = rates[currency];