Tabs tab switching caching problem antd

it is found that the first switch of the tab will render the interface request data, and the second switch will automatically cache the interface without requesting the interface. If I want to request the interface every time I switch, what should I do

here is the official antd demo

render(){
  <Tabs defaultActiveKey="1">
    <TabPane tab="Tab 1" key="1">Content of Tab Pane 1</TabPane>
    <TabPane tab="Tab 2" key="2">Content of Tab Pane 2</TabPane>
    <TabPane tab="Tab 3" key="3">Content of Tab Pane 3</TabPane>
  </Tabs>
}


know how to do it. You can switch between tab and refresh each time you make a judgment in TabPane.

<TabPane tab="" key="1">
     {activeKey==2?<Quotient indexData={fundValue} />:<div> </div>}
</TabPane>

Tabs is the cache mechanism at design time (tab slipping left and right on mobile devices should be very common. If you must make each request, you can manually add events in onChange .

Menu