mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
fix(nuxt): useState
in NuxtClientFallback
setup function (#26928)
This commit is contained in:
parent
e382045f95
commit
4544eaf228
@ -41,9 +41,10 @@ const NuxtClientFallbackServer = defineComponent({
|
||||
const vm = getCurrentInstance()
|
||||
const ssrFailed = ref(false)
|
||||
const nuxtApp = useNuxtApp()
|
||||
const error = useState<boolean | undefined>(`${props.uid}`)
|
||||
|
||||
onErrorCaptured((err) => {
|
||||
useState(`${props.uid}`, () => true)
|
||||
error.value = true
|
||||
ssrFailed.value = true
|
||||
ctx.emit('ssr-error', err)
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user