Skip to content

Don't cache rejected promises - #39

Open
langsamu wants to merge 2 commits into
mainfrom
cached-cancel
Open

Don't cache rejected promises#39
langsamu wants to merge 2 commits into
mainfrom
cached-cancel

Conversation

@langsamu

@langsamu langsamu commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Previously, when an IdP (issuer/AS) selector modal was cancelled (by the user clicking ESC or the 'cancel' button or by timeout) then subsequent invocations of the same UI were short-circuited to cancellation.

This was because in various places promises were put into Map caches even if they were rejected.

This change ensures that only results of resolved promises are cached.

@langsamu
langsamu marked this pull request as ready for review September 2, 2026 15:31
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 this pull request may close these issues.

1 participant