Title: Add onClose callback (or equiv) to showReportDialog · Issue #9433 · getsentry/sentry-javascript · GitHub
Open Graph Title: Add onClose callback (or equiv) to showReportDialog · Issue #9433 · getsentry/sentry-javascript
X Title: Add onClose callback (or equiv) to showReportDialog · Issue #9433 · getsentry/sentry-javascript
Description: Problem Statement I want to be able to take an action after a user has closed the report-dialog (opened via showReportDialog). Specifically, after my javascript application has crashed (gotten into a unknown and likely corrupted state) I...
Open Graph Description: Problem Statement I want to be able to take an action after a user has closed the report-dialog (opened via showReportDialog). Specifically, after my javascript application has crashed (gotten into...
X Description: Problem Statement I want to be able to take an action after a user has closed the report-dialog (opened via showReportDialog). Specifically, after my javascript application has crashed (gotten into...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/9433
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add onClose callback (or equiv) to showReportDialog","articleBody":"### Problem Statement\r\n\r\nI want to be able to take an action after a user has closed the report-dialog (opened via `showReportDialog`). \r\n\r\nSpecifically, after my javascript application has crashed (gotten into a unknown and likely corrupted state) I pop the report dialog via the `showReportDialog`. After the user either submits their report or otherwise closes the dialog I want to reload the page. \r\n\r\nThis is re-opening https://github.com/getsentry/sentry-javascript/issues/758\r\n\r\nThe solution suggested in the previous issue does not work for three reasons:\r\n\r\n1. There's a race condition on when, exactly, the DOM elements are loaded.\r\n2. The classes attached to the specified elements are not part of the official API and therefore brittle and prone to change.\r\n3. This does not solve the issue of the user closing the dialog by simply clicking outside of it.\r\n\r\n### Solution Brainstorm\r\n\r\nAn an 'onClose' callback. ","author":{"url":"https://github.com/phayes","@type":"Person","name":"phayes"},"datePublished":"2023-11-02T00:58:32Z","url":"https://github.com/getsentry/sentry-javascript/issues/9433"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9eb000a6-b7df-0cf2-8ea8-1568e62f024c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86AE:1C5C1D:1B98995:24BE054:6B042C0B |
| html-safe-nonce | 594673cf0cef862dbf34ffc72f1e398d15c5473487f90df493f952b5e5acdcb7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkFFOjFDNUMxRDoxQjk4OTk1OjI0QkUwNTQ6NkIwNDJDMEIiLCJ2aXNpdG9yX2lkIjoiMTExMjA0NzQ0MDgxMjU4Mzk0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9b588111e0451b07e15d8e0d17a98059e400dc4b5c42cdfc24def321c7bc3ebf |
| hovercard-subject-tag | issue:1973321866 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/9433/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f2e4f53f7eacbf685e586f6758f04f833e14a4bacaffeb859fac7a8aea90a669/getsentry/sentry-javascript/issues/9433 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f2e4f53f7eacbf685e586f6758f04f833e14a4bacaffeb859fac7a8aea90a669/getsentry/sentry-javascript/issues/9433 |
| og:image:alt | Problem Statement I want to be able to take an action after a user has closed the report-dialog (opened via showReportDialog). Specifically, after my javascript application has crashed (gotten into... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | phayes |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width