-
Notifications
You must be signed in to change notification settings - Fork 0
RFC: usePreloaderInfo #338
Copy link
Copy link
Open
Labels
RFC-SeenDiscussed by the core teamDiscussed by the core team[STAGE-1.5] looking for championAdd this label after a proposal was discussed but is missing someone to implement itAdd this label after a proposal was discussed but is missing someone to implement it[STAGE-2] incomplete implementationRemove this label when implementation is completeRemove this label when implementation is complete[STAGE-2] not fully covered by tests yetRemove this label when tests are verified to cover the implementationRemove this label when tests are verified to cover the implementation[STAGE-2] unresolved discussions leftRemove this label when all critical discussions are resolved on the issueRemove this label when all critical discussions are resolved on the issue[STAGE-3] docs changes not added yetRemove this label when the necessary documentation for the feature / change is addedRemove this label when the necessary documentation for the feature / change is added[STAGE-3] missing 2 reviews for RFC PRsRemove this label when at least 2 core team members reviewed and approved the RFC implementationRemove this label when at least 2 core team members reviewed and approved the RFC implementation
Metadata
Metadata
Assignees
Labels
RFC-SeenDiscussed by the core teamDiscussed by the core team[STAGE-1.5] looking for championAdd this label after a proposal was discussed but is missing someone to implement itAdd this label after a proposal was discussed but is missing someone to implement it[STAGE-2] incomplete implementationRemove this label when implementation is completeRemove this label when implementation is complete[STAGE-2] not fully covered by tests yetRemove this label when tests are verified to cover the implementationRemove this label when tests are verified to cover the implementation[STAGE-2] unresolved discussions leftRemove this label when all critical discussions are resolved on the issueRemove this label when all critical discussions are resolved on the issue[STAGE-3] docs changes not added yetRemove this label when the necessary documentation for the feature / change is addedRemove this label when the necessary documentation for the feature / change is added[STAGE-3] missing 2 reviews for RFC PRsRemove this label when at least 2 core team members reviewed and approved the RFC implementationRemove this label when at least 2 core team members reviewed and approved the RFC implementation
Type
Projects
Status
In Progress (STAGE 2)
Discussed in #311
Originally posted by maiieul October 6, 2025
What is it about?
A hook that exposes real time preloader information, such as
activeUserEventPreloadsCount,activePreloadsLength, etc.What's the motivation for this proposal?
Problems you are trying to solve:
Goals you are trying to achieve:
It should be possible to do one without the other.
Proposed Solution / Feature
What do you propose?
A
usePreloaderInfohook provided by Qwik core.Potential implementations
1. General info is achievable today
POC: QwikDev/qwik#8035
screen recording: https://github.com/user-attachments/assets/e4e47802-5f07-49dd-b5c8-91ba271b3e1b
The problem is it's not tied to a component and visible tasks are also counted as "activeUserEventPreloads":
fallbackToMpaimplementation is cleaner2. Granular info - ability to provide custom loading UIs with a
activelyPreloadingBundlesCounttied to the componentFor this we would need a way to know which QRLs correspond to which component.
This should be achievable through the qwikLoader.
The challenge with this would be that the custom loading UI would have to be preloaded first (maybe inlined or through ssrPreloads).
Code examples
or
Links / References
No response