DioxusLabs / dioxus

Fullstack GUI library for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
19.3k stars 735 forks source link

Error with navigator::push() - cannot reclaim ElementId(...) #2257

Closed kalebvonburris closed 1 week ago

kalebvonburris commented 2 months ago

Problem

When using the navigate to redirect to a route in full stack, the application will crash with the error: cannot reclaim ElementId(2)

Steps To Reproduce

Steps to reproduce the behavior:

I have a repo running SurrealDB here: https://github.com/kalebvonburris/cs372-dioxus

This error is not due to the async nature of the push - I tested it in a synchronous environment with a simple button.

Expected behavior

It should redirect to my landing page.

Screenshots

image

Environment:

Questionnaire

kalebvonburris commented 2 months ago

After removing all HTML and having a simple button that does a nav.push, I get a successful load with no errors.

kalebvonburris commented 2 months ago

Removing the POP_UP GlobalSignal fixes this issue. In fact, I didn't have to remove the signal, I just removed the if call to it and was able to properly redirect.