Skip to content

Commit b21509b

Browse files
fix(overmind): bind correctly proxifying effects
1 parent 8cf2d07 commit b21509b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node_modules/overmind/src/proxyfyEffects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function wrapEffect(target, prop, path, cb) {
1212
const effectId = currentEffectId++
1313

1414
return cb({
15-
func: target[prop],
15+
func: target[prop].bind(target),
1616
effectId,
1717
name: path,
1818
method: prop,

0 commit comments

Comments
 (0)