File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
designer/src/builtin-simulator
react-simulator-renderer/src Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,14 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
258258 return engineConfig . get ( 'enableStrictNotFoundMode' ) ?? false ;
259259 }
260260
261+ get notFoundComponent ( ) : any {
262+ return engineConfig . get ( 'notFoundComponent' ) ?? null ;
263+ }
264+
265+ get faultComponent ( ) : any {
266+ return engineConfig . get ( 'faultComponent' ) ?? null ;
267+ }
268+
261269 @computed get componentsAsset ( ) : Asset | undefined {
262270 return this . get ( 'componentsAsset' ) ;
263271 }
Original file line number Diff line number Diff line change @@ -188,6 +188,8 @@ class Renderer extends Component<{
188188 getNode = { ( id : string ) => documentInstance . getNode ( id ) as Node }
189189 rendererName = "PageRenderer"
190190 thisRequiredInJSE = { host . thisRequiredInJSE }
191+ notFoundComponent = { host . notFoundComponent }
192+ faultComponent = { host . faultComponent }
191193 customCreateElement = { ( Component : any , props : any , children : any ) => {
192194 const { __id, ...viewProps } = props ;
193195 viewProps . componentId = __id ;
You can’t perform that action at this time.
0 commit comments