diff --git a/packages/node_modules/overmind/src/index.ts b/packages/node_modules/overmind/src/index.ts index 1fa3c72a..5715b160 100644 --- a/packages/node_modules/overmind/src/index.ts +++ b/packages/node_modules/overmind/src/index.ts @@ -536,7 +536,9 @@ export class Overmind implements Configuration { } else if (typeof value === 'function') { aggr[key] = new Derived(value) } else { - aggr[key] = value + var originalDescriptor = Object.getOwnPropertyDescriptor(state, key) + + Object.defineProperty(aggr, key, originalDescriptor as any) } return aggr