Angular | Why do any asynchronous events inside the guard delay the component for 5-6 seconds?

Discussão em 'Angular' iniciado por Андрій Степанов, Maio 6, 2025.

  1. Any Promise or Observable inside the Guard delays the page for 6 seconds. The most interesting thing is that the request itself occurs instantly, within milliseconds. But for some reason it still takes 5 seconds. This is in any Guard that I tried to create.

    Ps: I tried to implement a check for the access token, its validity (so that it is not fake), and for this you need a backend, but the problem is not in that, there are milliseconds of response.

    Examples: picture1 enter image description here enter image description here

    Continue reading...

Compartilhe esta Página