wp-graphiql icon indicating copy to clipboard operation
wp-graphiql copied to clipboard

Auto-Refresh feature and refresh button added

Open kidunot89 opened this issue 6 years ago • 2 comments

If GRAPHQL_DEBUG is set to true. The GraphiQL fetcher will refresh every ~~5000~~ 15000 ms. A specific interval time can be set by setting GRAPHQL_DEBUG to the desired number of milliseconds.

A Refresh button was also added to the toolbar, in case the interval to some high.

kidunot89 avatar Apr 01 '19 21:04 kidunot89

Yo, I'm seeing some gnarly issue when I check this out. . .it looks like it tries to refetch the Schema constantly without stopping at all.

Attached is a screenshot, but it doesn't do it justice. It's flickering nonstop for me and creating infinite HTTP requests for the Schema.

Haven't dug into the code, but something is busted for sure.

graphiql

jasonbahl avatar Apr 08 '19 20:04 jasonbahl

That weird, I've been using the branch since I created it a week ago with little to no issue. Based upon the screenshot. It looks like the GRAPHQL_DEBUG flags is set to true and being read a 1. Try changing it to a number like 6000 or 15000.

kidunot89 avatar Apr 08 '19 21:04 kidunot89