I’m using beforeModel on a nested route and parent route to add or remove a class from the body that stops it from being scrollable.
The parent route “recipes” has a child route called “recipe”. The “recipe” route adds a class in the beforemodel to the body called recipe-open, that class puts the body into overflow hidden. And on “recipes” route in the beforeModel hook I have to set to remove the class recipe-open. However in both scenarios when going back and forth between them I have to refresh the page to get it to apply.
I’m using simple jquery in both situations.