DioxusLabs / DioxusLabs/sdk

Timers don't trigger in background

Open
#111 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
302
Forks
58
PR merge metrics
No merged PRs in 30d

Description

Hi and thank you for all the amazing work you put into dioxus! It makes web development so much more fun and efficient.

I have used the timer feature of the sdk, but it appears that the timers don't trigger in background. Is there a way to force them to trigger in background?

To be specific, the timers seem to stop triggering once I switch tabs, but as long as the tab is open and the browser window is in background, they still seem to trigger.

This is on latest Firefox on Ubuntu. But I assume that this is a structural problem of browsers, and not a problem of my specific system setup. Is there a structural solution for this as well? If it is not implemented in dioxus, I could also try to make a pull request if someone points me to the right feature in web browsers.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the timer behavior in latest Firefox on Ubuntu, comparing an active tab with a switched-away tab while the browser window remains open. Then trace the SDK's timer feature to identify its browser entry point and determine whether the requested background behavior is supported; done means documenting the limitation or identifying a concrete browser-supported approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.