Pre-rendering for ‘/courses’ in Angular Universal stalls with no errors. I executed ng run app:ssr-task
but suspect unresolved real-time observables are causing the hang.
hey i think unresolved subs are causing the hang, try unsubscribng or manually completing them so pre-render can finish. also, check for any loop issues in your observables, might be stuck.
Hey there! I ran into a similar situation where my pre-render was stalling because some observables wouldn’t complete properly. For me, tinkering with the subscription lifecycles and even adding a timeout help in some cases. It might be worth exploring if any of your async streams are waiting indefinitely for a response. Have you tried using something like RxJS’s take operator to guarantee that the observable completes? I’m also curious if you noticed any particular patterns when the stall occurs. What are some steps you’ve already taken to troubleshoot it? Would love to hear more about your approach and maybe brainstorm together on some other strategies