{"action":"reopened","issue":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/3162","repository_url":"https://api.github.com/repos/ant-design/ant-design-pro","labels_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/3162/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/3162/comments","events_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/3162/events","html_url":"https://github.com/ant-design/ant-design-pro/issues/3162","id":392009896,"node_id":"MDU6SXNzdWUzOTIwMDk4OTY=","number":3162,"title":"antdPro 使用dva全局loading作为组件渲染条件会多次渲染","user":{"login":"stringStar","id":24769809,"node_id":"MDQ6VXNlcjI0NzY5ODA5","avatar_url":"https://avatars3.githubusercontent.com/u/24769809?v=4","gravatar_id":"","url":"https://api.github.com/users/stringStar","html_url":"https://github.com/stringStar","followers_url":"https://api.github.com/users/stringStar/followers","following_url":"https://api.github.com/users/stringStar/following{/other_user}","gists_url":"https://api.github.com/users/stringStar/gists{/gist_id}","starred_url":"https://api.github.com/users/stringStar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stringStar/subscriptions","organizations_url":"https://api.github.com/users/stringStar/orgs","repos_url":"https://api.github.com/users/stringStar/repos","events_url":"https://api.github.com/users/stringStar/events{/privacy}","received_events_url":"https://api.github.com/users/stringStar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-18T06:07:47Z","updated_at":"2018-12-18T06:32:24Z","closed_at":null,"author_association":"NONE","body":"fetch data在didmount时触发，loading也在didmount时触发，会造成组件渲染两次，如：\r\n`<Card title={ <FormattedMessage id=\"app.monitor.popular-searches\" defaultMessage=\"Popular Searches\" /> } loading={loading} bordered={false} bodyStyle={{ overflow: 'hidden' }} > <TagCloud data={tags} height={161} /> </Card>` 其中TagCloud会先被渲染然后被loading替换"}}
{"actor":{"display_login":"stringStar"}}