mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 14:09:46 +03:00
run prettier
This commit is contained in:
parent
2ce1388494
commit
583749467d
|
@ -118,16 +118,15 @@ export default function JSONNestedNode(props: Props) {
|
||||||
// calculate individual node expansion if necessary
|
// calculate individual node expansion if necessary
|
||||||
isCircular ? false : shouldExpandNodeInitially(keyPath, data, level)
|
isCircular ? false : shouldExpandNodeInitially(keyPath, data, level)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if(shouldExpandNode === undefined){
|
if (shouldExpandNode === undefined) {
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
setExpanded(shouldExpandNode);
|
setExpanded(shouldExpandNode);
|
||||||
}, [shouldExpandNode])
|
}, [shouldExpandNode]);
|
||||||
|
|
||||||
const handleClick = useCallback(() => {
|
const handleClick = useCallback(() => {
|
||||||
if (expandable) setExpanded(!expanded);
|
if (expandable) setExpanded(!expanded);
|
||||||
}, [expandable, expanded]);
|
}, [expandable, expanded]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user