Skip to content

Commit 12c41a3

Browse files
committed
fix: stop backoff when new starts
1 parent fef473f commit 12c41a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/graphql-playground-react/src/components/Playground.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ export class Playground extends React.PureComponent<Props & ReduxProps, State> {
199199
this.setState({ schema: undefined })
200200
}
201201
let first = true
202+
if (this.backoff) {
203+
this.backoff.stop()
204+
}
202205
this.backoff = new Backoff(async () => {
203206
if (first) {
204207
await this.schemaGetter(props)

0 commit comments

Comments
 (0)