-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Posts only update on build/restart #9
Comments
Hello, right now no there is no way to get the posts on each request. The only plugin i know that implements this kind of logic is the gatsby-source-filesystem and it is actually using a file watcher to accomplish it when using But even if there was a way to have a watcher on |
Thanks for the response. I got it to work how I want by taking your |
yeah obviously this would work! |
Is there a way to query/scrape IG when the page loads in order to always see the latest posts?Right now the only way to get new posts is restarting
gatsby develop
or runninggatsby build
. Will using the IG Graph API accomplish this? It seems like a lot of trouble to go through to get a token just to display the last 6 Instagram posts on my site so I've held off and am using the scraper for now. Thanks!Edit: is there a way to use the React component lifecycle (ie
componentDidMount
) for this?The text was updated successfully, but these errors were encountered: