Graphql-playground: Introspection query issued repeatedly even while idle

Created on 27 Jun 2019  路  2Comments  路  Source: graphql/graphql-playground

This issue pertains to the following package(s):

  • [x] GraphQL Playground - Electron App
  • [x] GraphQL Playground HTML
  • [ ] GraphQL Playground
  • [ ] GraphQL Playground Express Middleware
  • [ ] GraphQL Playground Hapi Middleware
  • [ ] GraphQL Playground Koa Middleware
  • [ ] GraphQL Playground Lambda Middleware

What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?

1.7.20

What is the expected behavior?

Issue introspection request on load / on refresh button click / once in 5m or something reasonable

What is the actual behavior?

Playground is issuing introspection requests each 3s or so. It's too often for my taste, especially when developing locally it heats cpu a lot when schema is not cached on server.

What steps may we take to reproduce the behavior?

Launch Playground Electron or React (probably every version does that)

image

image

kindiscussion rf1-draft

Most helpful comment

I found out it's probably because of low schema.polling.interval settings which is 2000ms by default. Low value for my taste. Dunno, maybe reconsider and eventually close this.

All 2 comments

I found out it's probably because of low schema.polling.interval settings which is 2000ms by default. Low value for my taste. Dunno, maybe reconsider and eventually close this.

I started facing this issue recently. It is happening with "@apollographql/[email protected]"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DarkLite1 picture DarkLite1  路  3Comments

schickling picture schickling  路  4Comments

marktani picture marktani  路  3Comments

niklasR picture niklasR  路  3Comments

phuongthuan picture phuongthuan  路  3Comments