Africa's economy was recovering from the COVID-19 pandemic in 2022 when a range of internal and external shocks.