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

dynamic-federation.ts - loadRemoteEntries uses Promise.all() but should use Promise.allSettled() #374

Open
tomsontom opened this issue Nov 10, 2023 · 0 comments · May be fixed by #375
Open

Comments

@tomsontom
Copy link

We ran in a bug today because one of our remotes was not available and then invalid singleton versions have been loaded upon application bootstraping.

We tracked the problem down to the fact the when loading the remotes the code uses a Promise.all() who according to the documentation resolves at the moment one of the sub-promises rejects. We think the correct solution is to use Promise.settled() so that it ensure that ALL remotes have been loaded successfully/not sucessfully.

@tomsontom tomsontom linked a pull request Nov 10, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant