parent
							
								
									646e694f0a
								
							
						
					
					
						commit
						f4639e0a36
					
				@ -53,6 +53,11 @@ export function setDevtoolsHook(hook: DevtoolsHook, target: any) {
 | 
			
		||||
    replay.push((newHook: DevtoolsHook) => {
 | 
			
		||||
      setDevtoolsHook(newHook, target)
 | 
			
		||||
    })
 | 
			
		||||
    // clear buffer after 3s - the user probably doesn't have devtools installed
 | 
			
		||||
    // at all, and keeping the buffer will cause memory leaks (#4738)
 | 
			
		||||
    setTimeout(() => {
 | 
			
		||||
      buffer = []
 | 
			
		||||
    }, 3000)
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user