reflex icon indicating copy to clipboard operation
reflex copied to clipboard

[firefox] Unhandled Runtime Error: Should not already be working. after dismissing rx.window_alert

Open masenf opened this issue 1 year ago β€’ 2 comments

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 image

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.

masenf avatar Jul 18 '23 20:07 masenf

Related to https://github.com/facebook/react/issues/17355

Low priority, since not seen in prod mode.

masenf avatar Jul 19 '23 22:07 masenf

@masenf Was this fixed? I'm not able to reproduce this on main.

ElijahAhianyo avatar Apr 08 '24 12:04 ElijahAhianyo