mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-01-27 15:22:56 +08:00
add missing dependency values
This commit is contained in:
parent
752d913d8d
commit
c0e5e4e190
@ -91,7 +91,7 @@ const JsonEditor: React.FC<{
|
||||
}
|
||||
|
||||
setValue(json);
|
||||
}, [json]);
|
||||
}, [config.autoformat, json]);
|
||||
|
||||
React.useEffect(() => {
|
||||
const formatTimer = setTimeout(() => {
|
||||
@ -107,7 +107,7 @@ const JsonEditor: React.FC<{
|
||||
}, 1000);
|
||||
|
||||
return () => clearTimeout(formatTimer);
|
||||
}, [value, config.autoformat]);
|
||||
}, [value, config.autoformat, setJson]);
|
||||
|
||||
return (
|
||||
<StyledEditorWrapper>
|
||||
|
Loading…
x
Reference in New Issue
Block a user