Open iisakkirotko opened 1 year ago
After you showed your workaround, I think this the original issue with use_event
, which we workaround by having use_event
and a single component in a component.
Indeed. I think the error is just getting suppressed by the conditional rendering
Due to a bug in Reacton (see also https://github.com/widgetti/solara/pull/81)
use_event
can only be used at top-level in solara apps. Using conditional rendering this can be extended a bit. For instance in the following code:use_event
works normally for the first click, but stops working (without any error shown) as soon as the button is rendered, regardless of whether the button becomes unrendered later.