nfl/react-helmet

onChangeClientState not executing

Open

#328 opened on Oct 23, 2017

View on GitHub
 (2 comments) (8 reactions) (0 assignees)JavaScript (17,167 stars) (706 forks)batch import
bughelp wanted

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.

Contributor guide