mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
Reloading GraphQL docs on schema reload (#2747)
This commit is contained in:
parent
b0b7613f26
commit
27d5881684
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user