Changes in trade patterns may help mitigate projected aggregate economic losses by reallocating agricultural production abroad and encouraging economic diversification toward less affected sectors. Temperature increases have been shown to lower agriculture and manufacturing exports with especially large declines in poor countries . Further, imports of agricultural products are projected to rise across most of Africa by 2080-2099 under a high emissions scenario , with increases ranging from ~30% of GDP in the Central African Republic to ~5% of GDP in South Africa and Nigeria, although some countries will experience increases in net agricultural exports . While these reallocation effects may be large, current evidence is mixed regarding whether such adjustment of production will dampen or amplify overall social costs of climate change in Africa , as food prices are projected to rise by 2080-2099 across all African countries under a scenario with high challenges to mitigation and adaptation , with the largest price effects  experienced in Chad, Niger and Sudan . Moreover, reallocating production of agriculture abroad could be maladaptive if it leads to decline or replacement of traditional sectors by industrial and service sectors, which could lead to land abandonment, food insecurity and loss of traditional practices and cultural heritage .
IPCC
Climate Change 2022: Impacts, Adaptation and Vulnerability
IPCC Report