Skip to content

Commit e8a0c5e

Browse files
fix(devtools): circular ref on observer stringify (#134)
1 parent 66fd6aa commit e8a0c5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/devtools/active-query-panel/Explorer.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ export default defineComponent({
100100
const stringifiedValue = computed(() =>
101101
JSON.stringify(
102102
props.value,
103-
Object.getOwnPropertyNames(Object(props.value))
103+
Object.getOwnPropertyNames(Object(props.value)).filter(
104+
(key) => !key.startsWith("__")
105+
)
104106
)
105107
);
106108

0 commit comments

Comments
 (0)