In my route guard(canActivate
), I am looking to access the current state of my app in order to validate data and prevent users from navigating incorrectly. How can I retrieve the current state?
I attempted using a subscription on the store to obtain the state, but it only retrieves the data when the state is modified!