Creates a new ResourcePage instance.
Function that returns a Promise resolving to the component
Unique identifier for caching purposes
Returns the loaded component if available, undefined otherwise. This method can be used to check if the component is already loaded without triggering a load or throwing an error.
The loaded component or undefined if not yet loaded
Returns the module identifier associated with this resource (debug helper).
Loads the resource if not already loaded or loading. This method can be called multiple times safely - it will return the same promise.
Promise that resolves to the loaded component
Reads the resource with React Suspense integration. This is the key method for integrating with React Suspense:
The loaded component
A resource manager for lazy-loaded React components with Suspense integration. This class handles the loading state, caching, and Suspense integration for dynamically imported components.
Example