DEV Community

Discussion on: How to prevent React setState on unmounted component - a different approach

Collapse
 
dimaip profile image
Dmitri Pisarev 🇷🇺

Every time I read code with rxjs in it I'm reminded that I'm not a very bright person... So hard to wrap my head around it!

Collapse
 
martinbelev profile image
Martin Belev

Same here. I tried to learn the concepts behind it before, maybe 2-3 times. Unfortunately, I couldn't grasp it and could say that I didn't understand it. Maybe my approach was wrong or I wasn't ready/experienced enough to understand it. However, after watching Jafar Husain's course on the topic so many things became clearer. I really can't recommend it highly enough.

Collapse
 
dimaip profile image
Dmitri Pisarev 🇷🇺

Thanks for the recommendation!
Actually I'm working on a project that uses redux-observable, and every time I need to touch some code I either copy some other example or need to ponder on the docs for quite some time... I get the high-level idea of it, I just don't feel like the reactive model is all that natural for most things we do on the web. Even for the topic of this post a cancelable promise would have been much easier to grasp.

Collapse
 
jenc profile image
Jen Chan

Right there with you pal... I just have to try and try it over and over :[