Change in app hook resolution

Thank @ankush for this works !

I’ve got a related problem in the past, and solve it in custom way, nice to see it will be a core feature