In my case is not behaving in a consistent manner. Sometimes it recompiles just the corresponding modified file, but others it recompiles everything.
<https://pastebin.com/Cjtdc1hg> I am not sure if the issue has to do with the fact that I am jumping from one example to another.