Gatsby: [gatsby-source-twitter] Error - Content reloads only after I delete local .cache

Created on 7 Nov 2018  路  3Comments  路  Source: gatsbyjs/gatsby

Below is how I imported the plugin in _gatsby-config.js_

screenshot 2018-11-07 at 18 08 36

And this is how I used it in my component file

screenshot 2018-11-07 at 19 12 52

The plugin works and it shows me my latest tweet, but if I post a new one and refresh, it doesn't show the latest one anymore (the old one is still in place). Only if I delete my .cache folder and do gatsby develop, my latest tweet will be shown.

Any ideas?

stale? question or discussion

Most helpful comment

@alexcroitoru95 I think the fetched data(tweets) is cached. If the cached data is available it does not hit the API again. Is that correct @pieh?

All 3 comments

@alexcroitoru95 I think the fetched data(tweets) is cached. If the cached data is available it does not hit the API again. Is that correct @pieh?

Old issues will be closed after 30 days of inactivity. This issue has been quiet for 20 days and is being marked as stale. Reply here or add the label "not stale" to keep this issue open!

Hey again!

It鈥檚 been 30 days since anything happened on this issue, so our friendly neighborhood robot (that鈥檚 me!) is going to close it.

Please keep in mind that I鈥檓 only a robot, so if I鈥檝e closed this issue in error, I鈥檓 HUMAN_EMOTION_SORRY. Please feel free to reopen this issue or create a new one if you need anything else.

Thanks again for being part of the Gatsby community!

Was this page helpful?
0 / 5 - 0 ratings