HackerTrans
TopNewTrendsCommentsPastAskShowJobs

iraldir

no profile record

comments

iraldir
·há 3 meses·discuss
Really cool and love the design, will give it a go
iraldir
·há 7 anos·discuss
Interesting to hear someone who clearly tried to use it seriously. That said I do agree with the first comment on the article itself, he is using his "useFetch" in a very far fetched (haha) way. A hooks should not be called as a callback to an event, you should "trigger an action" (whether redux, a callback from a higher component etc.) that update a state which in turns trigger the hook. I understand this can be length / annoyingly administrative but that is the cost of the react architecture, with the payoff being to better understand the flow of the application.