Woo-hoo effects!
This can be made a little bit easier imho by just using the id selector as the source of the effect
setCurrentCourse$=createEffect(()=>this.store.pipe(select(selectRouteParam('id')asany))).pipe(map((id:string)=>setIds({id})),// dispatch a new action to set the selected id),{dispatch:true});
Woo-hoo effects!
This can be made a little bit easier imho by just using the id selector as the source of the effect
Effects are magical, are they :)
Thanks, I agree with you so I updated the example 🚀