nfl/react-helmet

onChangeClientState not executing

开放

#328 创建于 2017年10月23日

 (2 条评论) (8 个反应) (0 位负责人)JavaScript (706 个派生)batch import
bughelp wanted

仓库指标

星标
 (17,167 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南