question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Loading bar breaks when combined with NGXS

See original GitHub issue

I’m having this issue with NGXS and this library. HTTP calls triggered by NGXS Actions make the bar start loading, but it never completes (the bar reaches 100% and doesn’t disappear and the spinner keeps spinning). Manually completing the loading bar with loadingBarService.useRef().complete() doesn’t help.

Any idea on how to solve this?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
LuckeeDevcommented, Apr 12, 2021

Thank you for the great work you’re doing on this library! Works perfectly now.

1reaction
aitboudadcommented, Apr 11, 2021

The issue was related to NGXS which runs actions outside of Angular Zone (https://stackoverflow.com/a/58509995/1406096), I’ve pushed a fix in version v5.1.2.

Thanks for the effort!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lazy Loading - NGXS
Stores can be lazy-loaded easily by importing the NgxsModule using the forFeature method. All the other syntax for how you import and describe...
Read more >
NGXS - Angular State Management - YouTube
Learn how use an exciting new state management library for Angular. In this episode, we get started with NGXS and compare it to...
Read more >
NGXS Storage plugin breaks navigation - Stack Overflow
I am wondering, why the ngxs redirects to homepage when another page is being reloaded? I see in console RouterCancel events.
Read more >
Things I Wish I Had Known About Angular When I Started
Split your components into separate modules, so you can import and load only the required modules. The common approach is to divide your ......
Read more >
failed to load parser '@angular-eslint/template-parser' - You.com
Any one of those things might have been installed as a slightly different version that now breaks something. Bootstrap, at a guess given...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found