commit e0c3a8bce1308fe2b2a356cef481fc8ebac1aae2
parent 31db9312f8a302bc52ec6644c7bcbd663ca12ff6
Author: Guilherme Pacheco <guilherme.f.pacheco@hotmail.com>
Date: Wed, 20 Jul 2016 02:17:04 -0300
Fix not updating title when navigating between two content pages (#758)
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/routes/content/Content.js b/src/routes/content/Content.js
@@ -27,6 +27,10 @@ class Content extends Component {
this.context.setTitle(this.props.title);
}
+ componentWillReceiveProps(nextProps) {
+ this.context.setTitle(nextProps.title);
+ }
+
render() {
return (
<div className={s.root}>