Skip to content

Commit 990aa35

Browse files
author
Sébastien Henau
committed
tests: update playground to show frames
1 parent a48a330 commit 990aa35

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

playground/vue/App.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,16 @@ const showBuggy = ref(false);
6565
"
6666
>
6767
<BuggyComponent />
68-
<template #fallback="{ error, componentHierarchy, resetErrorBoundary }">
68+
<template #fallback="{ error, componentHierarchy, componentHierarchyFrames, resetErrorBoundary }">
6969
<div class="space-y-1">
7070
<p>Something went wrong: {{ error.message }}</p>
7171
<p class="text-xs text-gray-500">Hierarchy: {{ componentHierarchy.join(' > ') }}</p>
72+
<details class="text-xs text-gray-500">
73+
<summary>Hierarchy frames ({{ componentHierarchyFrames.length }})</summary>
74+
<pre class="mt-1 overflow-auto text-xs">{{
75+
JSON.stringify(componentHierarchyFrames, null, 2)
76+
}}</pre>
77+
</details>
7278
<button
7379
class="rounded-md bg-black px-2 py-1 text-sm font-medium text-white"
7480
@click="resetErrorBoundary"

0 commit comments

Comments
 (0)