DioxusLabs / DioxusLabs/dioxus

DX Serve in debug mode reloads the app's home page unnecessarily

Open
#5,763 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**

When my app is being developed in debug mode, dx serve somehow triggers page reloads, which is not the intended behaviour. It does not trigger these reloads in release mode.

**Steps To Reproduce**

Steps to reproduce the behavior:

- App started in dx serve debug mode.
- Reloads page spontaneously approx every two minutes.
- This is part of an oauth flow but I investigated and rejected any places where the code could itself have triggered the reload because of an oauth error.

**Expected behavior**

- The page should not reload.

**Screenshots**

n/a

**Environment:**

- Dioxus version: 0.7.10
- Rust version: 1.96.0-nightly 2026-03-11
- OS info: Mac OS 26.5.2
- App platform: web

**Questionnaire**

I'm interested in fixing this myself but don't know where to start and may be able to help if it doesn't take too long.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with a web app running in `dx serve` debug mode, using the reported OAuth flow and observing the spontaneous reloads. Trace the debug-mode reload behavior and compare it with release mode; done means the home page no longer reloads approximately every two minutes.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
developer-experience, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.