site: fix demo, close: #8227

This commit is contained in:
Benjy Cui 2017-11-20 15:19:43 +08:00
parent 3406c6598a
commit e8b4892a70

View File

@ -103,6 +103,7 @@ class Page extends React.Component {
}
}
let forceRerender = 0;
class App extends React.Component {
constructor() {
super();
@ -129,7 +130,9 @@ class App extends React.Component {
<Radio.Button key="cn" value={zhCN}>中文</Radio.Button>
</Radio.Group>
</div>
<LocaleProvider locale={this.state.locale}><Page /></LocaleProvider>
<LocaleProvider locale={this.state.locale}>
<Page key={forceRerender++ /* HACK: just refresh in production environment */} />
</LocaleProvider>
</div>
);
}