We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41fd1b7 commit 2b7b3b7Copy full SHA for 2b7b3b7
src/entity/in_memory.js
@@ -12,6 +12,9 @@ export class InMemoryEntity {
12
return new this.prototype.constructor(config);
13
}
14
15
+ // Override if config deepClone is needed
16
+ static _isDeepCloneRequired = false;
17
+
18
constructor(config = {}) {
19
this._json = this.constructor._isDeepCloneRequired ? deepClone(config) : clone(config);
20
0 commit comments