wp-graphiql
wp-graphiql copied to clipboard
Auto-Refresh feature and refresh button added
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.
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.

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.