Skip to content

Bug: useRealtimeRun continues fetching run data after completion in v3.3.5 #1538

Closed
@EnriqueSantos-dev

Description

@EnriqueSantos-dev

Provide environment information

System:
OS: Linux 5.15 Ubuntu 24.04 LTS 24.04 LTS (Noble Numbat)
CPU: (16) x64 AMD Ryzen 7 7700 8-Core Processor
Memory: 11.72 GB / 15.20 GB
Container: Yes
Shell: 3.7.0 - /usr/bin/fish
Binaries:
Node: 20.17.0 - ~/.local/share/nvm/v20.17.0/bin/node
npm: 10.8.2 - ~/.local/share/nvm/v20.17.0/bin/npm
pnpm: 9.10.0 - ~/.local/share/nvm/v20.17.0/bin/pnpm

Describe the bug

The useRealtimeRun hook keeps making requests even after the run has been completed, causing unnecessary network load.

Reproduction repo

https://github.com/EnriqueSantos-dev/nextjs-realtime-simple-demo

To reproduce

  1. Copy the contents of .env.local.example, paste them into a new .env file, and populate it with your environment variables.
  2. Update the placeholder project reference in the trigger.config.ts file.

Additional information

2024-12-06.13-58-51.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions