Answer the question
In order to leave comments, you need to log in
Where to make ajax requests: in hooks or in redux actoins?
Hey!
I study hooks, before that I wrote on class components for half a year. React + redux bundle.
I made requests to api in redux actions using redux thunk. And in relatively large projects, the file with actions grew very large.
Actually the question is: where to make ajax requests: in hooks (own hooks) or in redux actoins?
Answer the question
In order to leave comments, you need to log in
if you use thunk or saga there and keep making requests, nothing has changed.
And in relatively large projects, the file with actions grew very large.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question