mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(nuxt): avoid destructuring error prop (works around upstream bug) (#20795)
This commit is contained in:
parent
83c7172ace
commit
6b7197fd8c
@ -5,12 +5,14 @@
|
||||
<script setup>
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
|
||||
// Deliberately prevent reactive update when error is cleared
|
||||
// eslint-disable-next-line vue/no-setup-props-destructure
|
||||
const { error } = defineProps({
|
||||
const props = defineProps({
|
||||
error: Object
|
||||
})
|
||||
|
||||
// Deliberately prevent reactive update when error is cleared
|
||||
// eslint-disable-next-line vue/no-setup-props-destructure
|
||||
const { error } = props
|
||||
|
||||
// TODO: extract to a separate utility
|
||||
const stacktrace = (error.stack || '')
|
||||
.split('\n')
|
||||
|
Loading…
Reference in New Issue
Block a user