Questions About Hybrid Approach and HMR in Next.js with Effect
Just finished watching the video about Next.js and effect, very interesting as I have an application using NextJS where using effect has not ever been easy. For reference this is the video https://www.youtube.com/watch?v=GX5enIbwWzM&t=770s
There is a part that I don't understand, and that is about the Hybrid approach (https://youtube.com/clip/Ugkx6l6PBlytvjR0TAXS6aMir6QXXNqxMiD-?si=DhImeg6omFXZKR80). Why is it needed to reload some services during HMR? Does that include changes to the code? So stateful services are never reloaded even if I change the code? Or what is the use case of the dynamic services ? Why would you want to reload them?
Does this only happen in dev? Or it will happen on every page load?
There is a part that I don't understand, and that is about the Hybrid approach (https://youtube.com/clip/Ugkx6l6PBlytvjR0TAXS6aMir6QXXNqxMiD-?si=DhImeg6omFXZKR80). Why is it needed to reload some services during HMR? Does that include changes to the code? So stateful services are never reloaded even if I change the code? Or what is the use case of the dynamic services ? Why would you want to reload them?
Does this only happen in dev? Or it will happen on every page load?
