You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add field to ResourceLoaderParams to find out whether the loader is triggered for the first time #59677
Which @angular/* package(s) are relevant/related to the feature request?
No response
Description
Sometimes, it's necessary to determine whether the loader was triggered for the first time. Before 19.1.x, we could have checked param.previous.status for Idle, but now, this status is already set to loading initially.
Proposed solution
Hence, I'd like to propose another way to achieve the same, e.g., a first flag (similar to the first flag in ngOnChanges).
Alternatives considered
We could use a flag in userland. This is doable and can be hidden in a helper function wrapping the loader. However, I assume using a first flag is easier.
changed the title [-]Add field to ResourceLoaderParams to find out wether the loader is triggered for the first time[/-][+]Add field to ResourceLoaderParams to find out whether the loader is triggered for the first time[/+]on Jan 23, 2025
Activity
[-]Add field to ResourceLoaderParams to find out wether the loader is triggered for the first time[/-][+]Add field to ResourceLoaderParams to find out whether the loader is triggered for the first time[/+]JeanMeche commentedon Jan 24, 2025
#59708 has the fix for this
alxhub commentedon Jan 29, 2025
Fixed by 127fc0d
angular-automatic-lock-bot commentedon Mar 1, 2025
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.