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
Our page uses server-side rendering, and some loadable features need to be displayed immediately after the page loads. We hope to obtain the chunkName during server-side rendering and then preload resources.
Example
// server sideimport{LoadablePopup}from'./loadable'constchunkName=LoadablePopup.chunkName();constresources=collectResources(chunkName);// Then insert link preload after body tag
Pitch
Why does this feature belong in the Loadable Component ecosystem?
The text was updated successfully, but these errors were encountered:
🚀 Feature Proposal
Add chunkName method to loadable component.
Motivation
Our page uses server-side rendering, and some loadable features need to be displayed immediately after the page loads. We hope to obtain the chunkName during server-side rendering and then preload resources.
Example
Pitch
Why does this feature belong in the Loadable Component ecosystem?
The text was updated successfully, but these errors were encountered: