Answer the question
In order to leave comments, you need to log in
What is the correct way to call action in redux?
There are 2 actions: fetchRepos, setCurrentPage. There is also a saga for getting api data on fetchRepos. fetchRepos is called on render and after every setCurrentPage. What is the correct way to call actions in this case. Do sequential dispatch in the useEffect component or create a saga that will call fetchRepos for each action setCurrentPage?
Answer the question
In order to leave comments, you need to log in
How to properly call
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question