Skip to content

Commit ad3cc0d

Browse files
authored
fix: network cancellation for 1.0 (#1582)
1 parent cc7a7e2 commit ad3cc0d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/graphiql/src/components/GraphiQL.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ export class GraphiQL extends React.Component<GraphiQLProps, GraphiQLState> {
304304

305305
global.g = this;
306306
}
307+
UNSAFE_componentWillMount() {
308+
this.componentIsMounted = false;
309+
}
307310
// TODO: these values should be updated in a reducer imo
308311
// eslint-disable-next-line camelcase
309312
UNSAFE_componentWillReceiveProps(nextProps: GraphiQLProps) {

0 commit comments

Comments
 (0)