Reloading GraphQL docs on schema reload (#2747)

This commit is contained in:
Antoine 2020-10-20 00:35:53 -04:00 committed by GitHub
parent b0b7613f26
commit 27d5881684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -544,6 +544,7 @@ class GraphQLEditor extends React.PureComponent<Props, State> {
automaticFetch,
activeReference,
explorerVisible,
schemaLastFetchTime,
} = this.state;
const { query, variables: variablesObject } = GraphQLEditor._stringToGraphQL(content);
@ -556,6 +557,7 @@ class GraphQLEditor extends React.PureComponent<Props, State> {
const graphQLExplorerPortal = ReactDOM.createPortal(
<GraphqlExplorer
schema={schema}
key={schemaLastFetchTime}
visible={explorerVisible}
reference={activeReference}
handleClose={this._handleCloseExplorer}