Skip to content

fix: avoid calling showModal on already open dialogs - #99

Merged
targos merged 1 commit into
mainfrom
fix-modal
Jul 10, 2026
Merged

targos merged 1 commit into
mainfrom
fix-modal

Conversation

@targos

@targos targos commented Jul 10, 2026

Copy link
Copy Markdown
Member

I moved the code to an effect because onDialogRef is called many times during the lifecycle of the component, not only on mount.
I was not able to reproduce the error myself but this is what we have in Sentry issues (the browser versions are quite old):
CleanShot 2026-07-10 at 10 28 17
CleanShot 2026-07-10 at 10 28 30

@targos
targos requested a review from tpoisseau July 10, 2026 08:29
@targos
targos merged commit f4e3365 into main Jul 10, 2026
10 checks passed
@targos
targos deleted the fix-modal branch July 10, 2026 09:10
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.

2 participants