AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Is It Really That Bad to Have Effects?
Is it really that bad to have effects? Or is it just better to keep your components always right? I think it is because there are times you rely on that behavior. Even effects having a cleanup function. That's our mental model. Like when I go away, this whole thing is cleaned up. Clean up functions will run. But you should be able to use mounting as an idea. You know, think how many components on routes that we have that do that. And then when you leave away from them, you shouldn't have to add code that's like, I'm not on this route anymore. It amounts.