msusur / codefiction-stats-graphql

20 stars 7 forks source link

[fix] use no-cache fetch policy for query #46

Closed mustaphaturhan closed 5 years ago

mustaphaturhan commented 5 years ago

This PR is fixing #44.

Query's fetch policy was "cache-first" by default. Our TopEpisodesChart was re-rendering after change select field value but Query wasn't fetch again because of fetch policy.

So, now I'm using "no-cache" fetch policy instead of cache-first. It is works.