Skip to content

Commit 2d3e951

Browse files
author
Marcell Toth
authored
perf: improve performance (#113)
* perf: eliminate mosaic from the performance critical paths * perf: bump json-schema-merge-allof * docs: only render a single instance of the stress test story * chore: extract ChildStack * style: lint * test: update snapshots
1 parent 512383d commit 2d3e951

File tree

16 files changed

+376
-398
lines changed

16 files changed

+376
-398
lines changed

src/__stories__/JsonSchemaViewer.tsx

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,11 @@ storiesOf('JsonSchemaViewer', module)
6363
);
6464
})
6565
.add('stress-test schema', () => (
66-
<>
67-
<div style={{ height: 345, overflowY: 'scroll' }}>
68-
<JsonSchemaViewer
69-
schema={stressSchema as JSONSchema4}
70-
defaultExpandedDepth={number('defaultExpandedDepth', 2)}
71-
onGoToRef={action('onGoToRef')}
72-
/>
73-
</div>
74-
<div style={{ height: 345, overflowY: 'scroll' }}>
75-
<JsonSchemaViewer
76-
schema={stressSchema as JSONSchema4}
77-
defaultExpandedDepth={number('defaultExpandedDepth', 2)}
78-
onGoToRef={action('onGoToRef')}
79-
/>
80-
</div>
81-
</>
66+
<JsonSchemaViewer
67+
schema={stressSchema as JSONSchema4}
68+
defaultExpandedDepth={number('defaultExpandedDepth', 2)}
69+
onGoToRef={action('onGoToRef')}
70+
/>
8271
))
8372
.add('allOf-schema', () => (
8473
<JsonSchemaViewer

0 commit comments

Comments
 (0)