Skip to content

Commit 1bd2b1c

Browse files
fix(action-chain): fix issue with keeping dynamic context in effects
1 parent b067cfa commit 1bd2b1c

File tree

1 file changed

+2
-2
lines changed
  • packages/node_modules/action-chain/src

1 file changed

+2
-2
lines changed

packages/node_modules/action-chain/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ function createProxyGetHandler(
1212
): ProxyHandler<any>['get'] {
1313
return (target, prop) => {
1414
if (typeof target[prop] === 'function') {
15-
return (...args) => {
16-
const result = target[prop](...args)
15+
return function(...args) {
16+
const result = target[prop].apply(this, args)
1717
if (result instanceof Promise) {
1818
result.then((promisedResult) => {
1919
// eslint-disable-next-line standard/no-callback-literal

0 commit comments

Comments
 (0)