Occasionally while embedding tweets in a react SPA, there is an error inside of the iFrame and the tweet doesn’t render. This happens with embedding via the html embed (<Blockquote… etc… ) and this also happens using the twitter widget via widgets.createTweetEmbed(tweetId, container.current, {})
I created a barebones react app to isolate the problem. I put an Add Tweet button to embed an additional tweet on the screen. Again, about 10% of my tweets do not render. I have attached a screenshot of the issue. Let me know if you have any thoughts. Thanks!
1 Like
This is happening in Chrome OSX - Version 100.0.4896.88 (Official Build) (arm64)
Also interesting is that I cannot recreate the problem in OSX Safari
I also cannot repro in OSX Firefox
Hello!
Thank you for taking the time to report the issue. Could you provide a test link?
Hi Lana! Thank you for checking in!
Here is a repo -
If you would prefer I deploy the repo somewhere - certainly let me know.
Sometimes I can add 30 tweets with no issue, but generally I will get the error to appear < 30 tweets.
Thanks!
Hi @lananelson I haven’t seen the error happen at all today. Has anything changed? Thanks!
Actually it’s back. It makes me think there is a race condition somewhere that happens during network traffic fluctuations.
Hi @ShawnSn13545459! We found an issue in the way we were bundling one of our dependencies and deployed a fix yesterday. If you still see this problem please let us know!
1 Like
Hi @lananelson! Things look great! Thanks again!