Optional _features?: Record<string, SubAppFeature>Features this subapp wants
Optional _frameworkfactory to return a framework object for the running env. it's unknown because we don't know what the env or the framework could be.
Optional _getGet the export subapp object from the module
handle loading the subapp's module
Unique definition ID, if a subapp with same name is re-declared then it will have a diff _id
The module that implements the subapp
Optional _pipelineCreate a render pipeline
The respective env/framework specific implementation should set this accordingly
Optional _renderHolds rendering pipeline instances for this subapp.
This is only used on client side. On server side, there are multiple page rendering for multiple requests. We need to maintain and manage the pipelines for each request. So they are stored in their owning request object.
Indicate if this subapp involves being used in any server side rendering TODO: this is not the right place for this? Since different routes could be using the same subapp def but not for SSR.
For UI component instance to let the subapp know it's mounting to the subapp
SubApp's start method that declareSubApp will create, with versions for browser or node.js.
Optional reload: booleanFor UI component instance to let the subapp know it's unmounting from the subapp
definition of a subapp from
declareSubAppTo see example of implement and declare a subapp, see a framework specific SubApp implementation type, such as
ReactSubApp.