Fix makeProxy returning stale proxies after assigning objects (#722)
This commit is contained in:
		
							parent
							
								
									ee943c4284
								
							
						
					
					
						commit
						420b068094
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -133,6 +133,7 @@ function makeProxy(settings: any, root = settings, path = ""): Settings {
 | 
			
		|||
            target[p] = v;
 | 
			
		||||
            // Call any listeners that are listening to a setting of this path
 | 
			
		||||
            const setPath = `${path}${path && "."}${p}`;
 | 
			
		||||
            delete proxyCache[setPath];
 | 
			
		||||
            for (const subscription of subscriptions) {
 | 
			
		||||
                if (!subscription._path || subscription._path === setPath) {
 | 
			
		||||
                    subscription(v, setPath);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue