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