Skip to content

Commit 2b7b3b7

Browse files
committed
chore: add default _isDeepCloneRequired
1 parent 41fd1b7 commit 2b7b3b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/entity/in_memory.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export class InMemoryEntity {
1212
return new this.prototype.constructor(config);
1313
}
1414

15+
// Override if config deepClone is needed
16+
static _isDeepCloneRequired = false;
17+
1518
constructor(config = {}) {
1619
this._json = this.constructor._isDeepCloneRequired ? deepClone(config) : clone(config);
1720
}

0 commit comments

Comments
 (0)