Hello!
I am newbee in the dvajs. I am using React 17,x, Typescript 4.2.3, antd 4.15.0, umi 3.4.7. If this question is inappropriate in this repo, I'll ask in the umi.
If I navigate to a page /s/, the code has to get some categories from API and perform another request to the server while displaying it on some pages. But at the moment, when search effect is called, categories are empty, so I trying to call action getCategories again. But the categories are still empty.
How to get results from another action? Maybe there is some dispatch chain?
The code is provided below and in attached
search2.txt
Hello! I am newbee in the dvajs. I am using React 17,x, Typescript 4.2.3, antd 4.15.0, umi 3.4.7. If this question is inappropriate in this repo, I'll ask in the umi.
If I navigate to a page /s/, the code has to get some categories from API and perform another request to the server while displaying it on some pages. But at the moment, when
search
effect is called, categories are empty, so I trying to call actiongetCategories
again. But the categories are still empty. How to get results from another action? Maybe there is some dispatch chain?The code is provided below and in attached search2.txt