fix: random 404s (#6138)

* fix: random 404s when navigating from user, org, or collection page to project

* more

* revert server

* clean names

* prepr
This commit is contained in:
Prospector
2026-05-19 11:11:48 -07:00
committed by GitHub
parent f106dc580f
commit 302b60d89c
45 changed files with 127 additions and 123 deletions
@@ -360,7 +360,6 @@ const formatDateTimeShort = useFormatDateTime({
minute: 'numeric',
})
const route = useRoute()
const vintl = useVIntl()
const { formatMessage } = vintl
@@ -373,13 +372,15 @@ const messages = defineMessages({
},
})
const chargeId = useRouteId('charge')
const {
data: user,
error: userError,
suspense: userSuspense,
} = useQuery({
queryKey: ['user', route.params.id],
queryFn: () => labrinth.users_v2.get(route.params.id),
queryKey: ['user', chargeId],
queryFn: () => labrinth.users_v2.get(chargeId),
})
onServerPrefetch(userSuspense)