Skip to content

Supersedes does not cancel events from different chains. #7041

Description

@tim-haselhoff

Describe the bug
A clear and concise description of what the bug is.

If you have multiple events which return/yield the same event supersession does not cancel the first run of the returned event.

e.g.

You have event_a and event_b both return the background task do_stuff.
event_b is called while event_a is still running which causes do_stuff to run two times.
do_stuff is not canceled.

I wrote some tests regarding that behavior here
tim-haselhoff#6

Is this intended behavior or a development oversight?

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

returned event is canceled.

Screenshots
If applicable, add screenshots to help explain your problem.

Specifics (please complete the following information):

  • Python Version: 3.14
  • Reflex Version: 0.9.10
  • OS: Linux
  • Browser (Optional): Chromium

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions