mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 15:03:57 +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 }) {
|
export default function JsonCellView({ value }) {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
try {
|
try {
|
||||||
const json = JSON.parse(value);
|
const json = React.useMemo(() => JSON.parse(value), [value]);
|
||||||
return (
|
return (
|
||||||
<OuterWrapper>
|
<OuterWrapper>
|
||||||
<InnerWrapper>
|
<InnerWrapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user