When opening a link from my app in a new tab (via cmd+click for example), the new tab title is not correctly updated from its default title. When selecting the tab, the title gets updated correcly.
It seems to be cause by the introduction of requestAnimationFrame in the pull request #307. At least in chrome, requestAnimationFrame is not executed on background tabs.
I've tested with a previous version (5.0.0), which has the correct behaviour.
(bug observed by @samuelmartineau)
I just realized that there's another issue related to this that was answered already: https://github.com/nfl/react-helmet/issues/314.
_TL;DR:_ add defer={false} prop to skip requestAnimationFrame.
This solution still works, but it's not documented in the README.
Was looking for this as well, thanks!
Most helpful comment
I just realized that there's another issue related to this that was answered already: https://github.com/nfl/react-helmet/issues/314.
_TL;DR:_ add
defer={false}prop to skip requestAnimationFrame.