Repository navigation
Reactive value disposed - but why? Need help. #4993
Replies: 2 comments 1 reply
|
There's not quite enough information here to give a complete answer, but here's the outline. The Line 316 is inside a So is it something like:
Using Try something like If you want any more help it probably requires a minimal reproduction. |
|
I think I can safely say this is not leptos-related. My bad. Sorry. I changed the storage to Rc in a thread_local, so now I panic on double borrow_mut instead. If I stop doing that, I suspect Storedvalue will work out fine too. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is inside a single full-page #component. It defines a stored value that I use to store a static state inside an effect.
There used to be one <select inside the same component. I select something; it generates new state and uses:
To store it.
Here's the conundrum. I've used this months. Deployed it on my website. Works. (you can check it out at https://senslogic.de/litho-app). It's the select at the bottom left of the page [Binary Mask/SLM].
So now I'm trying to add a checkbox next to it.
Just to be sure I know what's going on, I collected the select and this checkbox into one Memo:
The mask_type_helper wires the select:
Inside the Effect where I store that state, this is the only line that collects those inputs:
The result: I can use the
selectas many times as I want. Works all day. I cannot use the checkbox at all. panics immediatelyAt server/src/front/mod.rs:316:52, you tried to access a reactive value which was defined at server/src/front/mod.rs:59:33, but it has already been disposed,
and this is line 59:
I tried to figure this one out for an entire day yesterday. The checkbox is not even used anywhere. The only thing that I can see that complicates things is perhaps this: in
(which is why there is an .into() after the unwrap()), but I don't see why this would have any effect. Doing the same with both signals. One works, one doesn't.
Appreciate any suggestions.
All reactions