mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 21:55:59 +00:00
json cell data view performance fix
This commit is contained in:
@@ -21,7 +21,7 @@ const InnerWrapper = styled.div`
|
||||
export default function JsonCellView({ value }) {
|
||||
const theme = useTheme();
|
||||
try {
|
||||
const json = JSON.parse(value);
|
||||
const json = React.useMemo(() => JSON.parse(value), [value]);
|
||||
return (
|
||||
<OuterWrapper>
|
||||
<InnerWrapper>
|
||||
|
||||
Reference in New Issue
Block a user