HackerTrans
トップ新着トレンドコメント過去質問紹介求人

iraldir

no profile record

コメント

iraldir
·3 か月前·議論
Really cool and love the design, will give it a go
iraldir
·7 年前·議論
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.