Problems with lazy loading and editing of react cascade components

1. The Cascader cascade selector component of antd is adopted, and the regional lazy loading mode (province > city > district > county)
2. When you need to edit a region, because the data is lazily loaded, if the data of the district or county has not been loaded, only the first-level address is displayed when it is returned to Cascader (the first-level data is loaded by default)

related codes

   
there is only first-level data when the form is reflected

Feb.24,2022

try displayRender


Hello is there a good solution to this problem? ask for help

Menu