#5822·dioxus

"wasm-bindgen: imported JS function that was not marked as `catch` threw an error" when using suspended resource on fullstack

Author: SIGSTACKFAULTCreated Sep 7, 2026Updated Sep 21, 2026
Labelsbug

EDIT: see this comment for an even more minimal example, turns out half this stuff isn't necessary

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.