After browsing through the NGXS official documentation, I came across a solution for retrieving the state of multiple states. According to their recommendations, I need to use the following approach:
export class CityService {
@Selector([Zoo, ThemePark])
static zooThemeParks(zoos, themeParks) {
return [
...zoos,
...themeParks
];
}
}
Can someone please guide me on how to correctly consume this Selector? How can I trigger it within a component using Observables and subscribe to it?
I am currently working with the latest version of NGXS.