fix: make isHydrated
export .value
always
This commit is contained in:
parent
9800697670
commit
f1b0befd80
4 changed files with 7 additions and 7 deletions
|
@ -1,10 +1,10 @@
|
|||
export const isHydrated = computed(() => {
|
||||
if (process.server)
|
||||
return false
|
||||
return { value: false }
|
||||
|
||||
const nuxtApp = useNuxtApp()
|
||||
if (!nuxtApp.isHydrating)
|
||||
return false
|
||||
return { value: false }
|
||||
|
||||
const hydrated = ref(false)
|
||||
nuxtApp.hooks.hookOnce('app:suspense:resolve', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue