mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
default export
This commit is contained in:
parent
68dba9705f
commit
9a8a6e9e19
|
@ -97,7 +97,7 @@ interface Props extends CircularPropsPassedThroughJSONNestedNode {
|
||||||
expandable: boolean;
|
expandable: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
function JSONNestedNode(props: Props) {
|
export default function JSONNestedNode(props: Props) {
|
||||||
const {
|
const {
|
||||||
getItemString,
|
getItemString,
|
||||||
nodeTypeIndicator,
|
nodeTypeIndicator,
|
||||||
|
@ -126,8 +126,6 @@ function JSONNestedNode(props: Props) {
|
||||||
});
|
});
|
||||||
}, [isCircular, data, keyPath, level, shouldExpandNode]);
|
}, [isCircular, data, keyPath, level, shouldExpandNode]);
|
||||||
|
|
||||||
// fixme - previously this was happening after a component should update
|
|
||||||
// this should be moved to a useMemo and updated only when some props change
|
|
||||||
const renderedChildren =
|
const renderedChildren =
|
||||||
expanded || (hideRoot && props.level === 0)
|
expanded || (hideRoot && props.level === 0)
|
||||||
? renderChildNodes({ ...props, level: props.level + 1 })
|
? renderChildNodes({ ...props, level: props.level + 1 })
|
||||||
|
|
Loading…
Reference in New Issue
Block a user