Skip to content

Commit e1f09c8

Browse files
fix(overmind): detect circular json structure on stringify
1 parent 89e6e1a commit e1f09c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/node_modules/overmind/src/Devtools.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export class Devtools {
9999
) {
100100
if (!safeClassNames.has(value.constructor.name) && !unsafeClassNames.has(value.constructor.name)) {
101101
try {
102+
JSON.stringify(value)
102103
safeClassNames.add(value.constructor.name)
103104
} catch {
104105
unsafeClassNames.add(value.constructor.name)

0 commit comments

Comments
 (0)