Skip to content

Commit 0632594

Browse files
committed
fix: update initial state on package page
1 parent 687e639 commit 0632594

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

app/pages/package/[[org]]/[name].vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,13 @@ const nuxtApp = useNuxtApp()
259259
const route = useRoute()
260260
const hasEmptyPayload =
261261
import.meta.client &&
262-
nuxtApp.isHydrating &&
263262
nuxtApp.payload.serverRendered &&
264263
!Object.keys(nuxtApp.payload.data ?? {}).length
265-
const isSpaFallback = shallowRef(hasEmptyPayload && !nuxtApp.payload.path)
266-
const hasServerContentOnly = shallowRef(hasEmptyPayload && nuxtApp.payload.path === route.path)
264+
const isSpaFallback = shallowRef(nuxtApp.isHydrating && hasEmptyPayload && !nuxtApp.payload.path)
267265
const isHydratingWithServerContent = shallowRef(
268-
hasEmptyPayload && nuxtApp.payload.path === route.path,
266+
nuxtApp.isHydrating && hasEmptyPayload && nuxtApp.payload.path === route.path,
269267
)
268+
const hasServerContentOnly = shallowRef(hasEmptyPayload && nuxtApp.payload.path === route.path)
270269
271270
watch(
272271
[

0 commit comments

Comments
 (0)