-
-
Notifications
You must be signed in to change notification settings - Fork 979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash passing strings between components #104
Comments
Thank you for the incredibly detailed code and report! I think this might be already fixed - we were getting the drop order backwards when releasing components with borrowed properties. The patch went into #67. Try running In v0.1.7 all fields prefixed with "on" in components are automatically wrapped in the However, to make sure the bug doesn't exist I tested your code with a field that doesn't use EventHandler (by renaming the field to _on) and using We might need to yank v0.1.6 since getting drop order wrong is not good. |
Yep, I can confirm 0.1.7 doesn't crash, I needed to change the Props to use an Good job with the patch! Edit: I also tried to get it working just holding a plain |
Problem
While passing a string (from html input element) up to a parent node, the program sometimes crashes trying to mutate a cell that's currently being mutated.
Diagnosis Steps
It's unclear to me exactly why the crash is occuring, the following revealed nothing useful:
Full backtrace
I will concede that the code generating this crash is prototype-grade. However, all compiler and clippy lints pass (except non_snake_case due to dioxus style).
My speculation is that this has to do with my "onsend" propery not using the correct bounds, or requiring some wrapper, but I don't have a solution yet.
Here's the full project .zip
Platform information
Rust Target: x86_64-unknown-linux-gnu
Rust Version: 1.57.0 (rustup installed)
Linux Version: 5.14.21-2-MANJARO
I haven't tried on any other platforms.
The text was updated successfully, but these errors were encountered: