disable implicit @rx.event handlers

Open
#7,032 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
full-stack

Research direction

Start by tracing how non-underscored state methods are discovered as event handlers and how the @rx.event annotation is represented. Define the configuration option's default and explicit-only behavior, then verify that annotated handlers remain available while unannotated state methods do not.

Written by the indexing model from the issue text.

Description

enhancement

currently all non-underscored state methods are implicitly event handlers. Add an option to only allow explicit annotated functions with @rx.event

Dominant language
Python
Stars
28.9k
Forks
1.8k
Avg merge
1d 20h
Merged PRs (30d)
173

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from reflex-dev/reflex

All issues in reflex-dev/reflex

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.