2016-08-12 118 views

回答

3

您可以讓Relay通過使用forceFetch API發送重新提取所有數據的請求。

例如,如果你在你的陣營組件刷新數據有一個按鈕,如果處理函數是refreshData,調用forceFetch在功能:

refreshData() { 
    this.props.relay.forceFetch(); 
}