Previously, in an Angular 8.0.0 and 3.5.0 NGXS application, I successfully retrieved the RouterState using SelectSnapshot from the @ngxs/router-plugin within other states before component rendering. However, in my latest application, the RouterState now returns as undefined, seemingly not initialized before other states begin execution. This has prevented me from accessing SelectSnapshot in my components. this feature was crucial for page refreshes. Can someone guide me on how to achieve this with NGXS?
I attempted to use the new RouterDataResolved parameters within the state but encountered issues.
I have created a simple StackBlitz example demonstrating how I previously accessed the router state. Is there something I am missing or is there a specific setting required? https://stackblitz.com/edit/angular-nm7cj7