-
Notifications
You must be signed in to change notification settings - Fork 24
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
Init scripts also on initialClientRender #74
Comments
In working on this, I've noticed that I've PR'ed up the change anyway in case making use of |
I created a contentful project using their starter to test something else. And there I found that I think this kind of issue prompted this proposed solution. But it does not fix it as both are called prematurely. I cannot figure out why this is the case and what is causing it. A hack is to let |
Sorry, this only happened in dev mode, not when building and serving. @adamwiggall can you remember what caused us to believe we had to also init scripts on |
@raae I’m pretty sure when we visited a page using oembed with a clean cache embeds didn’t render. Refreshing the page made them render. |
@adamwiggall made me aware we need to
processInstagram
andloadTwitter
also ononInitalClientLoad
.I would combine
processInstagram
andloadTwitter
in ainitScripts
function and call that both from bothonInitalClientLoad
andonRouteUpdate
.The code for this can be found in
gatsby-browser.js
.The text was updated successfully, but these errors were encountered: