Open tylerforsythe opened 3 years ago
It wasn't something that was explicitly planned. That said, it seems like the only issue is that window.setTimeout calls are being executed server-side and wrapping with a check would enable SSR?
My understanding is that yes: protecting just those calls would enable SSR. I'd do it myself but don't know the first thing about developing/testing a node module.
This isn't something I've spent much time testing either, although the change is trivial. I have a set of changes I'm putting together for release this week. I'll add this and I can make future adjustments based on implementation feedback.
That'd be excellent; thank you so much! Looking forward to trying it out.
Hello,
Are there any plans to support Angular Universal SSR? That is, checking
isPlatformBrowser()
before attempting to reference thewindow
object? Thanks!