Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add callback to respond to errors when a component does not initialise in initAll #5267

Closed
1 task done
Tracked by #5205 ...
romaricpascal opened this issue Aug 27, 2024 · 1 comment
Closed
1 task done
Tracked by #5205 ...
Assignees

Comments

@romaricpascal
Copy link
Member

romaricpascal commented Aug 27, 2024

What

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

  • initAll can receive a new option with a callback that gets invoked when a component fails to initialise.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready to release 🚀
Development

Successfully merging a pull request may close this issue.

3 participants
@romaricpascal @patrickpatrickpatrick and others