Open poirazis opened 9 months ago
@poirazis is there a way to do this programmatically within your block code, i.e. if a required child is not present you can throw an error? I don't know if this is in scope for plugin development otherwise.
Hey @andz-bb yes, it is possible to do these checks programmatically ( one can lookup componentStore ) to see what plugins are installed.
What i didnt find a way to check is if the plugin has been instantiated at least once. This is the case i couldnt find a way to check for. if the plugin is installed, but has never been placed on a screen so the plugin isnt served / included.
When a Block Component is instructed to instantiate an unavailable component , to throw an error, or show a message.
The Block Component, is also unable to instantiate components that maybe installed, but havent been placed on any screen yet as the plugin isnt included.