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 6f30a70 commit 7561101Copy full SHA for 7561101
packages/node_modules/proxy-state-tree/src/index.ts
@@ -82,6 +82,11 @@ export class ProxyStateTree<T extends object> implements IProxyStateTree<T> {
82
)
83
}
84
getMutationTree(): ITrackMutationTree<T> {
85
+ if (IS_PRODUCTION) {
86
+ return ((this as any).__cachedProductionTree =
87
+ (this as any).__cachedProductionTree || new TrackMutationTree(this))
88
+ }
89
+
90
const tree =
91
this.cache.trackMutationTree.pop() || new TrackMutationTree(this)
92
0 commit comments