We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9dd006b commit 4eddf9dCopy full SHA for 4eddf9d
src/shared/util.ts
@@ -1,3 +1,5 @@
1
+import { isRef, unref } from 'v3'
2
+
3
export const emptyObject: Record<string, any> = Object.freeze({})
4
5
export const isArray = Array.isArray
@@ -90,7 +92,7 @@ export function toString(val: any): string {
90
92
return val == null
91
93
? ''
94
: Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
- ? JSON.stringify(val, null, 2)
95
+ ? JSON.stringify(isRef(val) ? unref(val) : val, null, 2)
96
: String(val)
97
}
98
0 commit comments