You've already forked AstralRinth
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:
+4
-3
@@ -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)
|
||||
Reference in New Issue
Block a user