npm start my project, it registers with the hosts in
credentials.json and everything’s fine.
When I properly terminate the process, it unregisters and when I start the project again, it installs again - as it should.
When I start the project and the process terminates unexpectedly/loses network connection - like when suspending the system (happens often when working with a laptop and closing the lid), on the go with a hotspot and unstable internet connection or closing the terminal - it can’t unregister properly and the next time I start it, it doesn’t do anything because it thinks it’s already installed. I need to terminate that process and start again to make things work.
I think that
Addon needs an
unregister method alongside
register so that we can call it before registering the addon for a smoother workflow.