nfl/react-helmet

onChangeClientState not executing

Open

#328 aberto em 23 de out. de 2017

Ver no GitHub
 (2 comments) (8 reactions) (0 assignees)JavaScript (706 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (17.167 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

It appears that after v5.0.0 onChangeClientState has some odd behaviour - its seemingly overridden by nested <Helmet /> usage or something else that results in it not executing when there are is more than one use of it. This wasn't the case before and would executed on the component it was specified for as well as all others.

This is useful for running code after Helmet has injected all the specified items - componentDidMount will sometimes return null when querying the DOM for items that should have been injected so we cannot use this.

Guia do colaborador