Commit 6673298
fix(webapp): wrap sentry tenant processor registration in singleton()
Remix's dev mode re-evaluates the entry module on code changes, but
`@sentry/remix` lives in node_modules and isn't reloaded — so without a
singleton guard each HMR reload was appending another copy of the
processor to Sentry's global processor list. Idempotent at runtime
(the processor is a pure read+stamp), but the list grew unbounded over
a dev session. Matches the pattern used by the two adjacent
`singleton()` calls.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b16902a commit 6673298
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
295 | | - | |
296 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
297 | 304 | | |
298 | 305 | | |
299 | 306 | | |
| |||
0 commit comments