Detect template change


Is there a way to detect when a template changes due to an if or each block?


The helper function you check at that if/each can call another function when it is truthy. Would that help?


It’s for a package so I need something generic that works regardless of the helpers used.


Depending on what you want to do, maybe _uihooks could help?