Factory function to create or retrieve a cached ResourcePage instance.
This function implements a singleton pattern per moduleId to ensure that
the same component is not loaded multiple times.
Parameters
moduleId: string
Globally unique identifier for the resource used for caching
Factory function to create or retrieve a cached ResourcePage instance. This function implements a singleton pattern per moduleId to ensure that the same component is not loaded multiple times.