Commit 307d39d
fix(webapp): make sentry processor singleton actually deduplicate
singleton() uses `__trigger_singletons[name] ??= getValue()`. A
`void`-returning callback stores `undefined` in the cache, which `??=`
treats as "still unset" — so every Remix dev reload re-evaluates the
callback and re-registers the Sentry processor (the exact problem this
wrapper was meant to prevent). Return `true` so the cache holds a
real value and the guard kicks in.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9b72f93 commit 307d39d
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
303 | 306 | | |
304 | 307 | | |
305 | 308 | | |
| |||
0 commit comments