In my selector I'm checking if the data in the store is loaded and corresponds the router parameters. The router is "source of truth", so if data is not loaded I'd like to send an action to fetch it. Is it ok to do such things in selector?
(currentGameState, router): Game => {
if (currentGameState.game.id === router.state.params.gameId &&
currentGameState.isLoaded) {
return currentGameState.game;
}
}