The U.N. Food and Agriculture Organization has warned that China’s slowing economy has led to an unprecedented surge in the demand for consumer goods in the world’s second-largest economy.

The agency said in its quarterly report on Monday that consumer spending fell 2.3 percent in April and June, its biggest drop in five years.

In its report, the agency said China’s economy contracted by a record 7.7 percent in the second quarter, its fastest since the global financial crisis.

The world’s third-largest manufacturing powerhouse has seen its trade surplus fall by $6.3 billion, a steep drop that could be reversed in coming months as it seeks to cut imports to keep up with the slowing economy.

China’s economy grew by 2.5 percent in 2016, its weakest performance since the end of the 1990s.

China is also grappling with a steep increase in food prices, which has fueled consumer inflation and prompted some people to turn to food-stamp programs.

The food-price index, the most commonly used measure of inflation in China, rose to 3.9 percent in March, the highest since April 2009, according to the government.

The index was last reported at 3.8 percent in November.