Skip to content

Commit 573221c

Browse files
committed
fix: check data on refresh
1 parent b88a97c commit 573221c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/plugins/fix.client.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ export default defineNuxtPlugin({
1414
!Object.keys(nuxtApp.payload.data).length
1515
) {
1616
nuxtApp.hooks.hookOnce('app:suspense:resolve', () => {
17-
console.log('refreshing nuxt data')
17+
console.log(
18+
'refreshing nuxt data',
19+
nuxtApp.payload.data,
20+
Object.keys(nuxtApp.payload.data ?? {}),
21+
)
1822
refreshNuxtData()
1923
})
2024
}

0 commit comments

Comments
 (0)