Merge pull request #1404 from ethereum/ssaEffectFix

fix react useeffect to reset analysis plugin on workspace change after reactivation
pull/1410/head
bunsenstraat 3 years ago committed by GitHub
commit 37a2071a32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -91,7 +91,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
if (currentWorkspace && currentWorkspace.isLocalhost === true) setShowSlither('visible')
})
return () => { }
}, [props.analysisModule])
}, [props])
const message = (name, warning, more, fileName, locationString) : string => {
return (`

Loading…
Cancel
Save