File tree Expand file tree Collapse file tree
packages/proxy-state-tree/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export class ProxyStateTree<T extends object> implements IProxyStateTree<T> {
3737 previousTree : TTree
3838 mutationTree : IMutationTree < T >
3939 proxifier : IProxifier < T >
40- master : ProxyStateTree < T >
40+ root : ProxyStateTree < T >
4141 pathDependencies : {
4242 [ path : string ] : Set < ITrackCallback >
4343 } = { }
@@ -54,7 +54,7 @@ export class ProxyStateTree<T extends object> implements IProxyStateTree<T> {
5454 options . delimiter = '.'
5555 }
5656
57- this . master = this
57+ this . root = this
5858 this . sourceState = state
5959 this . options = options
6060
@@ -64,7 +64,7 @@ export class ProxyStateTree<T extends object> implements IProxyStateTree<T> {
6464 /*
6565 We create a base proxifier for tracking state. That means there is one
6666 proxifier for all track state trees. This works because the actual tracking
67- refers to the current tree on "master "
67+ refers to the current tree on "root "
6868 */
6969 private createTrackStateProxifier ( ) {
7070 const trackStateTree = new TrackStateTree ( this )
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export interface IProxyStateTree<T extends object> {
119119 pathDependencies : {
120120 [ path : string ] : Set < ITrackCallback >
121121 }
122- master : IProxyStateTree < T >
122+ root : IProxyStateTree < T >
123123 proxifier : IProxifier < T >
124124 currentTree : TTree
125125 previousTree : TTree
You can’t perform that action at this time.
0 commit comments