pull/2681/head
lianahus 2 years ago committed by Aniket
parent 218f4236c9
commit 1ef0608bef
  1. 4
      libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx

@ -47,7 +47,7 @@ export const DebuggerUI = (props: DebuggerUIProps) => {
useEffect(() => { useEffect(() => {
handleResize() handleResize()
}, [state.debugging, state.isActive]) }, [])
useEffect(() => { useEffect(() => {
window.addEventListener('resize', handleResize) window.addEventListener('resize', handleResize)
@ -55,7 +55,7 @@ export const DebuggerUI = (props: DebuggerUIProps) => {
setTimeout(() => setTimeout(() =>
handleResize(), 2000) handleResize(), 2000)
return () => window.removeEventListener('resize', handleResize) return () => window.removeEventListener('resize', handleResize)
}, [state.debugging]) }, [state.debugging, state.isActive])
useEffect(() => { useEffect(() => {

Loading…
Cancel
Save