reflex
reflex copied to clipboard
[firefox] Unhandled Runtime Error: Should not already be working. after dismissing rx.window_alert
Describe the bug After the alert window pops up and is dismissed, the page immediately throws an error.
To Reproduce
import reflex as rx
class State(rx.State):
pass
def index() -> rx.Component:
return rx.button(
"Alert", on_click=rx.window_alert("Hello World!")
)
app = rx.App(state=State)
app.add_page(index)
app.compile()
Expected behavior Alert is dismissed without error
Screenshots
Specifics (please complete the following information):
- Python Version: 3.11.4
- Reflex Version: 0.2.1a1 (and also 0.2.0)
- OS: macOS (and in docker container)
- Browser (Optional): Firefox 115 (not repro in safari or chrome)
Additional context Reproducible in dev mode, does not seem to affect prod mode.
Related to https://github.com/facebook/react/issues/17355
Low priority, since not seen in prod mode.
@masenf Was this fixed? I'm not able to reproduce this on main.
Closing this issue for now.