Skip to content

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

Description

@SIGSTACKFAULT

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions