Add a onError option within the config object that initAll can receive to allows the caller to pass a callback function that'll be called if an error happens while initialising a component.
Why
Once the feature is added to createAll in #5212, initAll should offer the same functionality for consistency
Who needs to work on this
Developers
Who needs to review this
Developers
Done when
[x] initAll can receive a new option with a callback that gets invoked when a component fails to initialise.
What
Add a
onError
option within the config object thatinitAll
can receive to allows the caller to pass a callback function that'll be called if an error happens while initialising a component.Why
Once the feature is added to
createAll
in #5212,initAll
should offer the same functionality for consistencyWho needs to work on this
Developers
Who needs to review this
Developers
Done when
initAll
can receive a new option with a callback that gets invoked when a component fails to initialise.