From 84a672d6b63122b9732bc826d92a47bae97f2b25 Mon Sep 17 00:00:00 2001 From: Kit La Touche Date: Wed, 9 Oct 2024 15:40:32 -0400 Subject: Fix up on-navigation data loading Maybe this isn't ideal, but whatever. --- hi-ui/src/routes/(app)/ch/[channel]/+page.js | 13 ------------- hi-ui/src/routes/(app)/ch/[channel]/+page.svelte | 12 ++++++++++++ hi-ui/src/routes/+layout.svelte | 2 +- 3 files changed, 13 insertions(+), 14 deletions(-) delete mode 100644 hi-ui/src/routes/(app)/ch/[channel]/+page.js (limited to 'hi-ui') diff --git a/hi-ui/src/routes/(app)/ch/[channel]/+page.js b/hi-ui/src/routes/(app)/ch/[channel]/+page.js deleted file mode 100644 index 5fd493a..0000000 --- a/hi-ui/src/routes/(app)/ch/[channel]/+page.js +++ /dev/null @@ -1,13 +0,0 @@ -export const ssr = false; - -import { activeChannel } from '$lib/store'; - - -/** @type {import('./$types').PageLoad} */ -export function load({ params }) { - let { channel } = params; - activeChannel.update((value) => { - value.set(channel) - return value; - }); -} diff --git a/hi-ui/src/routes/(app)/ch/[channel]/+page.svelte b/hi-ui/src/routes/(app)/ch/[channel]/+page.svelte index 26b493e..ef439d0 100644 --- a/hi-ui/src/routes/(app)/ch/[channel]/+page.svelte +++ b/hi-ui/src/routes/(app)/ch/[channel]/+page.svelte @@ -1,5 +1,17 @@ diff --git a/hi-ui/src/routes/+layout.svelte b/hi-ui/src/routes/+layout.svelte index 8027443..7b99d62 100644 --- a/hi-ui/src/routes/+layout.svelte +++ b/hi-ui/src/routes/+layout.svelte @@ -9,7 +9,7 @@
🌳 - understory + understory {#if $currentUser} -- cgit v1.2.3