Open romaricpascal opened 1 month ago
This would provide a clear point for checking the presence of specific APIs, like in the Copy component of the Design System.
Having a separate method to check if specific APIs are supported overlaps a lot with isSupported
, made @protected
in #5323. We've decided to merge the two approaches and make checkSupport
static and protected, which will allow it to:
createAll
ahead of looping on all components, saving unnecessary loopingChild classes overriding the method will be able to throw
whatever Error
they see fit when support is not available for the component, which:
createAll
's way of catching these errors during initialisation
What
Investigate how to prevent component initialisation based on a condition, like Analytics needing users to have accepted cookies on the Design System site.
Why
This would offer a consistent way to initialise components that require a little check before actually being initialised, without having to actually instantiate them.
Who needs to work on this
Developers
Who needs to review this
Developers
Done when