Describe the bug
Since #1534 was fixed with #1907, I've found that the pendingComponent will not show if intent-based loading is enabled. The age blocks indefinitely until the dependencies are loaded.
This is better than the behaviour from before the fix, but still leaves something to be desired, and is not the behaviour I'd expect.
Your Example Website or App
https://stackblitz.com/edit/github-gh73by
In the above, see navigation to the About page, which does not show the specified pending component unless intent-based loading is off.
Steps to Reproduce the Bug or Issue
Make sure your project has intent-based loading enabled.
- Load into some part of your UI that contains a link with lazy-loaded code behind it.
- Slow down your connection speed using browser throttling tools.
- Hover and immediately click on the link
You will see that you will remain on the current page and no pendingComponent will render, even after the default 1 second wait time. This could be several seconds for slower connections and results in a poor user experience as they wonder "did I really click that link?"
Expected behavior
I expect the pendingComponent to show after the default 1 second wait time, as it does when preloading is disabled.
Screenshots or Videos
No response
Platform
- OS: Windows 11
- Browser: Chrome
- Version: 126
Additional context
No response
Describe the bug
Since #1534 was fixed with #1907, I've found that the pendingComponent will not show if intent-based loading is enabled. The age blocks indefinitely until the dependencies are loaded.
This is better than the behaviour from before the fix, but still leaves something to be desired, and is not the behaviour I'd expect.
Your Example Website or App
https://stackblitz.com/edit/github-gh73by
In the above, see navigation to the About page, which does not show the specified pending component unless intent-based loading is off.
Steps to Reproduce the Bug or Issue
Make sure your project has intent-based loading enabled.
You will see that you will remain on the current page and no
pendingComponentwill render, even after the default 1 second wait time. This could be several seconds for slower connections and results in a poor user experience as they wonder "did I really click that link?"Expected behavior
I expect the pendingComponent to show after the default 1 second wait time, as it does when preloading is disabled.
Screenshots or Videos
No response
Platform
Additional context
No response