reflex
reflex copied to clipboard
Calling background events from other background events and events
Describe the Features A clear and concise description of what the features does.
You would technically get any parallelism (We may want to just through warning about this) but this is a common use case people would want
-
What is the purpose of the feature?
-
Show an example / use cases for the new feature.
class LandingState(rx.State):
....
@rx.event(background=true)
def mark_reminder_read(self, reminder_id: str):
...
@rx.event(background=true)
def toggle_reminder_modal(self):
await LandingState.mark_reminder_read(reminder_id= "test")
Related to https://github.com/reflex-dev/reflex/issues/4947 for reference