Open gurnzbot opened 7 years ago
thx I found the fix
thx I found the fix
Mind sharing what was the fix? :)
thx I found the fix
Mind sharing what was the fix? :)
Now reading back on my reply, no idea why I even replied with that. I'll look into it again and see what I have done back then as quite a lot of things have happened since back then and my memory lacks.
I have an app that loads data asynchronously and uses Helmet.
I have a component in App.js, and in a child component Category.js.
Whenever category gets enough data that it can update the page
In App.js' render() method:
In Category.js' render() method:
If I reload a category route, I expect the title tag to be the category once it's data comes back from the API. However it is always the site title rendered in App. I can see this because the App's
onChangeClientState
function is the last thing logged in the console. I would expect the Category'sonChangeClientState
to fire last.If I navigate around the site a bit (go to the homepage and back to the category) the result is what I expect. However, on a simple page refresh, the child component doesn't render it's Helmet title.
I think I'm misunderstanding the flow of data within Helmet..?