A scene in which dva processes data

now there are four methods in
effects. ComponentsDidMount requests four methods respectively. After all the methods get the return values, they are stored in store.
where to get the return values of the four requests, where to process the data, or whether the methods in effect should be written together

Jun.11,2021

there is no doubt that you need to use Promise.all in componentsDidMount to get all the data and store it in stroe.

this function of getting all the data and storage can be put into the tool class method

Menu