fix: Preserve event_actions from @rx.event decorator in mixin event handlers#6099
Merged
masenf merged 3 commits intoreflex-dev:mainfrom Jan 27, 2026
Merged
Conversation
Contributor
Greptile OverviewGreptile SummaryFixed a bug where
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Decorator as @rx.event decorator
participant MixinClass as EventActionsMixin
participant CopyFn as _copy_fn method
participant ChildClass as UsesEventActionsMixin
participant CreateHandler as _create_event_handler
Note over Decorator,MixinClass: Mixin Definition
Decorator->>MixinClass: Decorate handle_with_actions()
Decorator->>MixinClass: Set _rx_event_actions attribute
Note over ChildClass: Child Class Inherits Mixin
ChildClass->>CopyFn: Copy event handler from mixin
CopyFn->>CopyFn: Create new FunctionType
CopyFn->>CopyFn: Copy annotations
CopyFn->>CopyFn: Preserve BACKGROUND_TASK_MARKER
CopyFn->>CopyFn: Preserve _rx_event_actions (NEW)
CopyFn->>ChildClass: Return copied function
Note over CreateHandler: Event Handler Creation
ChildClass->>CreateHandler: Create event handler
CreateHandler->>CreateHandler: Get _rx_event_actions from fn
CreateHandler->>ChildClass: Return EventHandler with event_actions
|
benedikt-bartscher
added a commit
to benedikt-bartscher/reflex
that referenced
this pull request
Mar 12, 2026
…andlers (reflex-dev#6099) * fix: Preserve event_actions from @rx.event decorator in mixin event handlers * add constant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.