forked from MapComplete/MapComplete
		
	Core: optimize immutable store for "bind"
This commit is contained in:
		
							parent
							
								
									98d90064eb
								
							
						
					
					
						commit
						f2398e9d91
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -352,6 +352,10 @@ export class ImmutableStore<T> extends Store<T> {
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return new ImmutableStore<J>(f(this.data))
 | 
					        return new ImmutableStore<J>(f(this.data))
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    bind<X>(f: (t: T) => Store<X>): Store<X> {
 | 
				
			||||||
 | 
					        return f(this.data)
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue