Skip to content

Commit 84d2234

Browse files
committed
chore: check more details
1 parent 680bebf commit 84d2234

1 file changed

Lines changed: 17 additions & 26 deletions

File tree

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

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -267,51 +267,42 @@ const isHydratingWithServerContent = shallowRef(
267267
hasEmptyPayload && nuxtApp.payload.path === route.path,
268268
)
269269
270-
watch(isSpaFallback, value => {
271-
console.log('isSpaFallback', value)
272-
})
273-
watch(isHydratingWithServerContent, value => {
274-
console.log('isHydratingWithServerContent', value)
275-
})
276270
watch(
277271
[
278272
() => hasEmptyPayload,
279273
() => isSpaFallback.value,
280274
() => isHydratingWithServerContent.value,
281275
() => status.value,
276+
() => Object.keys(nuxtApp.payload.data ?? {}).length,
277+
() => resolvedVersion.value,
278+
() => requestedVersion.value,
282279
],
283-
([hasEmptyPayloadArg, isSpaFallbackArg, isHydratingWithServerContentArg, statusArg]) => {
284-
console.log(
285-
'main bunch',
280+
([
281+
hasEmptyPayloadArg,
282+
isSpaFallbackArg,
283+
isHydratingWithServerContentArg,
284+
statusArg,
285+
dataLengthArg,
286+
resolvedVersionArg,
287+
requestedVersionArg,
288+
]) => {
289+
console.log('main bunch', {
286290
hasEmptyPayloadArg,
287291
isSpaFallbackArg,
288292
isHydratingWithServerContentArg,
289293
statusArg,
290-
)
291-
},
292-
)
293-
watch(
294-
[
295-
() => import.meta.client,
296-
() => nuxtApp.isHydrating,
297-
() => nuxtApp.payload.serverRendered,
298-
() => Object.keys(nuxtApp.payload.data ?? {}).length,
299-
],
300-
([importMetaClientArg, isHydratingArg, serverRenderedArg, dataLengthArg]) => {
301-
console.log(
302-
'additional bunch',
303-
importMetaClientArg,
304-
isHydratingArg,
305-
serverRenderedArg,
306294
dataLengthArg,
307-
)
295+
resolvedVersionArg,
296+
requestedVersionArg,
297+
})
308298
},
309299
)
310300
watch(
311301
() => nuxtApp.payload.data,
312302
data => {
313303
console.log('nuxtApp.payload.data', data)
314304
},
305+
{ immediate: true },
315306
)
316307
// When we have server-rendered content but no payload data, capture the server
317308
// DOM before Vue's hydration replaces it. This lets us show the server-rendered

0 commit comments

Comments
 (0)