Skip to content

Commit d11329e

Browse files
fix(overmind): safe values on effect arguments as well
1 parent 52f8e22 commit d11329e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/node_modules/overmind/src/proxyfyEffects.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { safeValues } from './Devtools'
2+
13
export const doNotProxy = Symbol('doNotProxy')
24

35
function isObject(value) {
@@ -16,7 +18,7 @@ function wrapEffect(target, prop, path, cb) {
1618
effectId,
1719
name: path,
1820
method: prop,
19-
args,
21+
args: safeValues(args),
2022
})
2123
}
2224

0 commit comments

Comments
 (0)