trigger.dev icon indicating copy to clipboard operation
trigger.dev copied to clipboard

bug: Infinite re-renders when using react hooks with tags

Open tonibardina opened this issue 1 month ago • 1 comments

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 connections to be created and eating all my browser's memory

Image

Reproduction repo

Not applicable

To reproduce

You just need to run useRealtimeRunsWithTag with an array of tags to reproduce the issue

Additional information

No response

tonibardina avatar Oct 23 '25 10:10 tonibardina

Up

treehill05 avatar Nov 12 '25 12:11 treehill05