Skip to content

Commit 6cf895a

Browse files
authored
Merge pull request #273 from apollographql/fix-schema-inclusion
Do not save introspectionQuery results in the cache
2 parents aefde80 + e01b361 commit 6cf895a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/backend/links.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ export const initLinkEvents = (hook, bridge) => {
184184
operationExecution$ = apolloClientReplica.watchQuery({
185185
query: queryAst,
186186
variables,
187+
fetchPolicy,
187188
});
188189
}
189190

src/devtools/components/Explorer/Explorer.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ export class Explorer extends Component {
175175
this.link = createBridgeLink(this.props.bridge);
176176
}
177177

178-
fetcher = ({ query, variables = {} }) => {
178+
fetcher = ({ query, variables = {}, noFetch = this.state.noFetch }) => {
179179
const result = execute(this.link, {
180180
query: parse(query),
181181
variables,
182-
context: { noFetch: this.state.noFetch },
182+
context: { noFetch },
183183
});
184184

185185
return result;
@@ -188,6 +188,7 @@ export class Explorer extends Component {
188188
componentDidMount() {
189189
this.fetcher({
190190
query: getIntrospectionQuery(),
191+
noFetch: false,
191192
}).forEach(result => {
192193
this.setState(oldState => {
193194
return {

0 commit comments

Comments
 (0)