modified web/src/routes/articles/[id]/+page.svelte +0 -2
| @@ -6,7 +6,6 @@ |
| 6 | 6 | import Icon from "$lib/components/Icon.svelte"; |
| 7 | 7 | import BlueskyLogo from "$lib/components/BlueskyLogo.svelte"; |
| 8 | 8 | import { endpoints } from "$lib/api"; |
| 9 | | - import { invalidateAll } from "$app/navigation"; |
| 10 | 9 | import { youtubeID, isEmbedURL } from "$lib/format"; |
| 11 | 10 | import type { Annotation } from "$lib/types"; |
| 12 | 11 | |
| @@ -182,7 +181,6 @@ |
| 182 | 181 | try { |
| 183 | 182 | if (next) await endpoints.markRead(data.article.id); |
| 184 | 183 | else await endpoints.markUnread(data.article.id); |
| 185 | | - await invalidateAll(); |
| 186 | 184 | } catch { |
| 187 | 185 | read = !next; |
| 188 | 186 | } |
| @@ -6,7 +6,6 @@ |
| 6 | import Icon from "$lib/components/Icon.svelte"; | 6 | import Icon from "$lib/components/Icon.svelte"; |
| 7 | import BlueskyLogo from "$lib/components/BlueskyLogo.svelte"; | 7 | import BlueskyLogo from "$lib/components/BlueskyLogo.svelte"; |
| 8 | import { endpoints } from "$lib/api"; | 8 | import { endpoints } from "$lib/api"; |
| 9 | - import { invalidateAll } from "$app/navigation"; | | |
| 10 | import { youtubeID, isEmbedURL } from "$lib/format"; | 9 | import { youtubeID, isEmbedURL } from "$lib/format"; |
| 11 | import type { Annotation } from "$lib/types"; | 10 | import type { Annotation } from "$lib/types"; |
| 12 | | 11 | |
| @@ -182,7 +181,6 @@ |
| 182 | try { | 181 | try { |
| 183 | if (next) await endpoints.markRead(data.article.id); | 182 | if (next) await endpoints.markRead(data.article.id); |
| 184 | else await endpoints.markUnread(data.article.id); | 183 | else await endpoints.markUnread(data.article.id); |
| 185 | - await invalidateAll(); | | |
| 186 | } catch { | 184 | } catch { |
| 187 | read = !next; | 185 | read = !next; |
| 188 | } | 186 | } |