Commit eff5c128 authored by tizah's avatar tizah Committed by Liana Husikyan

resolve new comment by @Aniket-Engg

parent c4a0fcc4
...@@ -67,12 +67,13 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { ...@@ -67,12 +67,13 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
useEffect(() => { useEffect(() => {
if (autoRun) { if (autoRun) {
setWarningState([])
if (state.data !== null) { if (state.data !== null) {
run(state.data, state.source, state.file) run(state.data, state.source, state.file)
} }
} }
return () => { } return () => { }
}, [autoRun, state]) }, [state])
const message = (name, warning, more, fileName, locationString) : string => { const message = (name, warning, more, fileName, locationString) : string => {
return (` return (`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment