After ProTable has got data from a request, the loading state disappear but no data is listed in the Table. The table remains empty, even though items has been loaded.
import {request} from "@umijs/max";
import {WeatherForecast} from "@/services/test/typings";
/**
* Retrieves weather forecasts asynchronously from the server.
* @returns {Promise<WeatherForecast[]>} A Promise that resolves to an array of WeatherForecast objects.
*/
export async function getWeatherForecastsAsync() : Promise<WeatherForecast[]>{
return request<WeatherForecast[]>('/api/weatherforecast', {
method: 'GET'
});
}
π bug ζθΏ°
After ProTable has got data from a request, the loading state disappear but no data is listed in the Table. The table remains empty, even though items has been loaded.
π· ε€η°ζ₯ιͺ€ | Recurrence steps
//see recurrence code
π ζζη»ζ | Expected results
Populated table
π» ε€η°δ»£η | Recurrence code
Component
Type
Service
https://github.com/ant-design/ant-design-pro/assets/64005967/8fe891b3-104b-4b61-8b3e-b7d0c11b5ecf
Β© ηζ¬δΏ‘ζ―
π ε Άδ»δΏ‘ζ―