We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88bd480 commit 86351b8Copy full SHA for 86351b8
src/Schema.tsx
@@ -49,9 +49,12 @@ export const SchemaView: FunctionComponent<ISchemaView> = props => {
49
setExpandedRows({ ...expandedRows, [rowKey]: expandRow });
50
}, []);
51
52
- const toggleShowExtra = useCallback<MouseEventHandler<HTMLElement>>(() => {
53
- setShowExtra(!showExtra);
54
- }, []);
+ const toggleShowExtra = useCallback<MouseEventHandler<HTMLElement>>(
+ () => {
+ setShowExtra(!showExtra);
55
+ },
56
+ [showExtra]
57
+ );
58
59
let actualSchema: ISchema =
60
!dereferencedSchema || isEmpty(dereferencedSchema)
0 commit comments