Title: Improve client hook subscriber management · Issue #17276 · getsentry/sentry-javascript · GitHub
Open Graph Title: Improve client hook subscriber management · Issue #17276 · getsentry/sentry-javascript
X Title: Improve client hook subscriber management · Issue #17276 · getsentry/sentry-javascript
Description: Problem Statement Today, we simply store client hook callbacks in an array per hook. This generally works fine, but as we learned in #17272, causes incorrect behaviour when removing a callback (i.e. unsubscribing) synchronously while sub...
Open Graph Description: Problem Statement Today, we simply store client hook callbacks in an array per hook. This generally works fine, but as we learned in #17272, causes incorrect behaviour when removing a callback (i.e...
X Description: Problem Statement Today, we simply store client hook callbacks in an array per hook. This generally works fine, but as we learned in #17272, causes incorrect behaviour when removing a callback (i.e...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/17276
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve client hook subscriber management","articleBody":"### Problem Statement\n\nToday, we simply store client hook callbacks in an array per hook. This generally works fine, but as we learned in https://github.com/getsentry/sentry-javascript/pull/17272, causes incorrect behaviour when removing a callback (i.e. unsubscribing) synchronously while subscribers are still being invoked. \n\n### Solution Brainstorm\n\nIdeally, we can find a solution that \n- enables synchronous unsibscribing without compromising other subscribers\n- requires no breaking API changes","author":{"url":"https://github.com/Lms24","@type":"Person","name":"Lms24"},"datePublished":"2025-07-31T15:54:06Z","url":"https://github.com/getsentry/sentry-javascript/issues/17276"}
| 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:68416b65-026a-30d4-1258-f4f6192159f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C330:3F9CD1:1139084:1667720:6B04F2D7 |
| html-safe-nonce | 96d4571cd0d975b2fab71fd335f1e95c046a96856cffade2cd83eb156a847db1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzMwOjNGOUNEMToxMTM5MDg0OjE2Njc3MjA6NkIwNEYyRDciLCJ2aXNpdG9yX2lkIjoiMjY5ODM4MTIyMDYwOTU4NTg3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b74584edb0176a8c699c2218d6d8a3b02f7f992589660eb1a1ee0df2e0daa95d |
| hovercard-subject-tag | issue:3280966352 |
| 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/17276/issue_layout |
| twitter:image | https://opengraph.githubassets.com/31ba81448404cbd574b0c19ad1d102ed40ae8f7bdd2519374a4984e1dcd60f73/getsentry/sentry-javascript/issues/17276 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/31ba81448404cbd574b0c19ad1d102ed40ae8f7bdd2519374a4984e1dcd60f73/getsentry/sentry-javascript/issues/17276 |
| og:image:alt | Problem Statement Today, we simply store client hook callbacks in an array per hook. This generally works fine, but as we learned in #17272, causes incorrect behaviour when removing a callback (i.e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Lms24 |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0ff704de2671f716381d0ef36115cddb81606dd5397a5b003230bb8c02d623b |
| 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 | cbe60d43d23e17438879ed212ad20068394651c4 |
| 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