remove deprecated store.onchange (#168)
This commit is contained in:
		
							parent
							
								
									a24177b62a
								
							
						
					
					
						commit
						7f5bea8f5b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -23,7 +23,7 @@ export class LocalStorageStore extends Store { | |||
|       } | ||||
|     } | ||||
|     this.set(newState) | ||||
|     this.onchange((state, changed) => { | ||||
|     this.on('state', ({changed}) => { | ||||
|       Object.keys(changed).forEach(change => { | ||||
|         if (this._keysToWatch.has(change)) { | ||||
|           this._keysToSave[change] = true | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue