I have an element, which display a Select component. Outside the component is a "close" button, which basically calls a callback from the parent element, removing this element from view.
When I display this element again, a new Select is rendered. As expected, I can do this process many times without any issues.
However, if I click on the close button while the drop down is open and I display the element again, I get:
18:53:43 [web] panicked at /home/dev/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/dioxus-core-0.7.9/src/arena.rs:59:50:
RefCell already borrowed
panic.
What is the best way to troubleshoot this issue? Thank you.
I have an element, which display a Select component. Outside the component is a "close" button, which basically calls a callback from the parent element, removing this element from view.
When I display this element again, a new Select is rendered. As expected, I can do this process many times without any issues.
However, if I click on the close button while the drop down is open and I display the element again, I get:
panic.
What is the best way to troubleshoot this issue? Thank you.