Problems with the organization of dva code

can not be used until the data obtained by an interface is requested to be processed.
is better to put to store after being processed in the models file.
still initiates a dispatch to save to store after (then) processing in the callback of dispatch in the component

Apr.08,2021

processing in the component will put the data processing logic in the component. If the data structure changes later, it will be handled in the component, which is not conducive to the reuse of the component. It feels better to be handled in dva


must be handled in effects of model , and then directly put a reducer , on it.

Menu