DEV Community

Discussion on: When and Why you should do Dependency Injection in React

Collapse
 
shadid12 profile image
Shadid Haque

Hey Jakub, that is a great feedback. Thank you for the input. I will do some more research on the module system. I have been injecting services like simple websockets and firebase real time DB instances through Context. And I totally agree if not careful these will lead to memory leaks. I will do some more research on these as well and definitely address these caveats. Good feedback though. Loved it :)

Collapse
 
sjbuysse profile image
sjbuysse • Edited

Would love to hear about the caveats & how to address them :)