Hello everyone!
Recently I had the opportunity to develop a small app so I started fresh with the latest Angular version (20) and tried out some features.
Basically I have a list of select boxes which depend on one another. Let's say movie releases, first you select a genre (Horror, SciFi).
When selected, based on the genre the medium are loaded with rxResource (e.g, DVD, BluRay or Amazon Prime, Netflix, etc.).
Then a third and a fourth option is presented (e.g. Year, Month) until finally the selection is narrow enough to display a list of movies.
This was all working until I noticed that by refreshing the browser, the whole selection was gone. So I added routing to my app. Each select box now adds a navigation path when changed.
And now things start falling apart. The main problem is, that after a refresh (F5) all values are immediately available from the router. But the rxResources depend on each other.
So while I have for example the medium (BluRay) from the router, the genres aren't loaded yet. So I basically need a mechanism to chain the rxResources together.
After the genres are loaded and the router contains a media, load all the media and select the media from the router and then to a similar thing with third and fourth option until lastly trigger the loading of the movie list.
Does anybody have suggestions on howto approach such a scenario?
Best regards,
Billie