DioxusLabs / DioxusLabs/dioxus

Interaction between fullstack, router, and dioxus_sdk::storage causes infinite loop

Open
#5,822 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**

using fullstack, router, a suspended resource, and dioxus_sdk::storage together causes an infinite loop of re-rendering the page.
Router might not actually be part of the problem. using fullstack, suspend, and storage together causes an error; i conjecture router turns this error into an infinite loop

**Steps To Reproduce**

Steps to reproduce the behavior:

- `git clone https://gitlab.com/SIGSTACKFAULT/dioxus-storage-resource-interaction-bug`
- `cd dioxus-storage-resource-interaction-bug/attempt_3`
- `dx serve`
- visit localhost:8080
- press F12 because you won't be able to open it after the next step
- click "set storage to 0 and go to /blog"

**Expected behavior**

Page loads

**Screenshots**
with router:
Image

without router:
Image

**Environment:**

- Dioxus version: v0.7.10
- Rust version: 1.98.0
- OS info: arch
- App platform: web, firefox

**Questionnaire**

I'm interested in fixing this myself but don't know where to start.

Contributor guide

No contributing guide indexed for this repository

Research direction

Clone the linked dioxus-storage-resource-interaction-bug repository, enter attempt_3, and run dx serve. Reproduce the issue in Firefox by setting storage to 0 and navigating to /blog, then compare the behavior with and without the router as described. Done means the page loads without an infinite re-render loop or the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend, full-stack, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.