diff options
| author | Adam Soltys <[email protected]> | 2024-10-22 11:31:01 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-22 11:31:01 -0700 |
| commit | b21b2c01b0294427fd799249a4670415c256df3f (patch) | |
| tree | 287bbfaf70fd3b8611c5cde499e1382a5471981a /src | |
| parent | 438e4161e7d02feb17c7fb76747ed6fc546ef05c (diff) | |
| download | coinos-ui-b21b2c01b0294427fd799249a4670415c256df3f.tar.gz coinos-ui-b21b2c01b0294427fd799249a4670415c256df3f.zip | |
more preloading
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+page.svelte | 6 |
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]; |
