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,
|
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}
|
||||||
|
Loading…
Reference in New Issue
Block a user