You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an option to createAll that allows services to pass a callback function to createAll 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 service
Who needs to work on this
Developers
Who needs to review this
Developers
Done when
We've decided on the arguments and name of that function
We've implemented the function
The feature is documented
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: