Closed romaricpascal closed 1 month ago
As a starter, the callback will be added as third parameter, passed either in place of the scope or in an object that contains both scope and the callback. A future piece of work will look at avoiding to have to provide null
when the component does not need a config.
Going to close as it's been merged into the WIP branch with documentation written for it.
What
Add an option to
createAll
that allows services to pass a callback function tocreateAll
that will be called if a component fails to initialise (or GOV.UK Frontend is not supported).Why
So services can react to errors happening during component initialisation with
createAll
, for example sending a report to an error monitoring serviceWho needs to work on this
Developers
Who needs to review this
Developers
Done when