From a file change to a reloaded page
Flowchart from the Technical Manual.
Text version
- File written in the project folder
- Matches ignoreForWatchingRegExp?
- Nothing happens
- Watcher event: add, change, unlink, addDir, or unlinkDir
- Files dispatches a file event with FileEventDetails
- process.env.PRODUCTION?
- No listener: the server continues running
- Routes.handleFileChange() logs and exits with 99
- Kitten Process Manager forks a new process
- New process creates routes and a new bootId
- kitten-hot-reload-1.js reconnects to /🐱/development-socket/
- bootId changed?
- window.location.reload()
- Page stays as it is