DEV Community

Discussion on: How to cook up a powerful React async component using hooks (and no Suspense)

Collapse
 
zyabxwcd profile image
Akash • Edited

Yep, you should have. I was following till you started coding, i.e. before we reached useAsync hook but after that I got lost completely. There were so many checks and conditions in place. I couldn't understand why we are doing what we are doing. I couldn't comprehend the pointers you wrote under useAsync so I skipped the part hoping I would be able to capture the use case or context you are mentioning by seeing it in combination with the code but I thought wrong. Definitely, you can explain the code you wrote. But you wrote something like 'we want to return keys in an object that will represent various parts of our interface'. I couldn't grasp what you were referring to and why or how did we reach this. I could not follow the thought process that made us come to that conclusion. I hope I could convey my confusion to you cause I was looking forward to this article and although I could not get the code and how different parts compose to work together but I can see that this is some good code and I want to understand this.