finally fixed being able to reload the anime page when searching or changing the url

This commit is contained in:
2025-12-21 13:01:51 -05:00
parent 874b3952ee
commit 2e5a4a4493
3 changed files with 17 additions and 13 deletions

View File

@@ -38,17 +38,7 @@
'/': Home,
'/anime/:id': wrap({
asyncComponent: () => import('./routes/AnimeRoutePage.svelte'),
conditions: [
async () => await CheckIfAniListLoggedIn(),
async (detail) => {
aniListAnime.update(value => {
value = AniListGetSingleAnimeDefaultData
return value
})
await GetAnimeSingleItem(Number(detail.params.id), true)
return Object.keys($aniListAnime).length!==0
},
],
conditions: [async () => await CheckIfAniListLoggedIn()],
loadingComponent: Spinner
}),
// '*': "Not Found"