aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/App.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-10 13:51:09 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commitf1a014936d9e5ed5aa4d1558a91589e4147886e6 (patch)
treeff563676963346ebdafea2ac37e02ae6a02d9d73 /vnext/src/App.js
parentb401c44834d268b3327d9013be67b58d135aefe4 (diff)
reload blog on user url change
Diffstat (limited to 'vnext/src/App.js')
-rw-r--r--vnext/src/App.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/App.js b/vnext/src/App.js
index 2601ef45..36053477 100644
--- a/vnext/src/App.js
+++ b/vnext/src/App.js
@@ -161,7 +161,7 @@ export default class App extends React.Component {
<Route exact path="/pm/:user" render={(props) => <Chat ref={this.pm} visitor={user} {...props} />} />
<Route exact path="/:user/friends" render={(props) => <Friends visitor={user} {...props} />} />
<Route exact path="/:user/readers" render={(props) => <Readers visitor={user} {...props} />} />
- <Route exact path="/:user" render={(props) => <Blog visitor={user} {...props} />} />
+ <Route exact path="/:user" render={(props) => <Blog key={props.match.params.user} visitor={user} {...props} />} />
<Route exact path="/tag/:tag" render={(props) => <Tag visitor={user} {...props} />} />
<Route exact path="/:user/:mid" render={(props) => <Thread ref={this.thread} visitor={user} {...props} />} />
</Switch>