Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

server side rendering hanging for minutes #863

Closed

Description

@rwmb
  • I'm submitting a ...
- [x ] bug report
- [ ] feature request
- [ ] support request
  • What modules are related to this Issue?
- [ ] aspnetcore-engine
- [x ] express-engine
- [ ] hapi-engine

I have an app that I've setup the environment for server side rendering with nodejs, but when I use the server rendering, the app hangs for minutes before it loads the page (I believe it's because I use a lot of setTimeouts to make a "presentation").
If you guys think it's related to the timeouts I can post more information.

  • Angular version: 5.0
  • Browser: [all]
  • Language: [all ]
  • OS: [ Windows | Linux ]
  • Platform: [NodeJs]

Activity

  1. changed the title [-]server side rendering hangs for minutes when using timeouts[/-] [+]server side rendering hanging for minutes[/+] on Dec 8, 2017
  2. Toxicable commented on Dec 8, 2017

    @Toxicable

    This isn't an issue with Universal.
    Universal will wait for all async operations ( including timeouts) to complete before rendering

  3. rwmb commented on Dec 8, 2017

    @rwmb
    Author

    I thought this could be the problem. Thanks @Toxicable. Is there a way of preventing this from happening?

  4. Toxicable commented on Dec 8, 2017

    @Toxicable

    There is no "catch all" solution on this one sorry, you'll have to just manage your async operations

  5. rwmb commented on Dec 8, 2017

    @rwmb
    Author

    Yeah, but is there a way to know if the app is being called from my domain? This way I could just return the app with "express.static", and if it's not, I would run different operations that don't include the async operations.

  6. angular-automatic-lock-bot commented on Sep 4, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions