Title: bug: Infinite re-renders when using react hooks with tags · Issue #2629 · triggerdotdev/trigger.dev · GitHub
Open Graph Title: bug: Infinite re-renders when using react hooks with tags · Issue #2629 · triggerdotdev/trigger.dev
X Title: bug: Infinite re-renders when using react hooks with tags · Issue #2629 · triggerdotdev/trigger.dev
Description: Provide environment information // not sure if applicable here Describe the bug Tag is used in the array of dependencies of multiple useEffect hooks inside the custom useRealtimeRunsWithTag hook. This is causing infinite realtime connect...
Open Graph Description: Provide environment information // not sure if applicable here Describe the bug Tag is used in the array of dependencies of multiple useEffect hooks inside the custom useRealtimeRunsWithTag hook. T...
X Description: Provide environment information // not sure if applicable here Describe the bug Tag is used in the array of dependencies of multiple useEffect hooks inside the custom useRealtimeRunsWithTag hook. T...
Opengraph URL: https://github.com/triggerdotdev/trigger.dev/issues/2629
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: Infinite re-renders when using react hooks with tags","articleBody":"### Provide environment information\n\n// not sure if applicable here\n\n### Describe the bug\n\n`Tag` is used in the array of dependencies of multiple `useEffect` hooks inside the custom `useRealtimeRunsWithTag` hook. This is causing infinite realtime connections to be created and eating all my browser's memory\n\n\u003cimg width=\"238\" height=\"138\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/98dd6867-c7f9-4d8c-a255-458c1a76895e\" />\n\n\n### Reproduction repo\n\nNot applicable\n\n### To reproduce\n\nYou just need to run `useRealtimeRunsWithTag` with an array of tags to reproduce the issue\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/tonibardina","@type":"Person","name":"tonibardina"},"datePublished":"2025-10-23T10:06:50Z","url":"https://github.com/triggerdotdev/trigger.dev/issues/2629"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:dd149118-8915-ca63-3a71-077ecd9f3208 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C66C:387B0D:3024E30:43FA7B2:6AFADE4C |
| html-safe-nonce | 72774ed2df7a6b2c287fc94e961410751508cbbda21179584115449e9340e486 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjZDOjM4N0IwRDozMDI0RTMwOjQzRkE3QjI6NkFGQURFNEMiLCJ2aXNpdG9yX2lkIjoiOTEzMDczODA1MDg2NTQ4NzQzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fe7e79e4f3a22b8856ccaddbe40602982870686a870887ea99640642e09eb02c |
| hovercard-subject-tag | issue:3544013038 |
| 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/triggerdotdev/trigger.dev/2629/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a766ee21b60660305f9ea67dbb1a83dbb6e016b7028093295624f0e521089ef6/triggerdotdev/trigger.dev/issues/2629 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a766ee21b60660305f9ea67dbb1a83dbb6e016b7028093295624f0e521089ef6/triggerdotdev/trigger.dev/issues/2629 |
| og:image:alt | Provide environment information // not sure if applicable here Describe the bug Tag is used in the array of dependencies of multiple useEffect hooks inside the custom useRealtimeRunsWithTag hook. T... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tonibardina |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d9bd51a568909a83d1abb9d6f74d68f0c87ca85fe3a56d3f5d70d8b89add9f2 |
| turbo-cache-control | no-preview |
| go-import | github.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git |
| octolytics-dimension-user_id | 95297378 |
| octolytics-dimension-user_login | triggerdotdev |
| octolytics-dimension-repository_id | 572570113 |
| octolytics-dimension-repository_nwo | triggerdotdev/trigger.dev |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 572570113 |
| octolytics-dimension-repository_network_root_nwo | triggerdotdev/trigger.dev |
| 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 | 4a7ae932999cc6d511008dbf980ff9efad2a31f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width