Skip to content

Commit

Permalink
Push deprecation dates back for event args
Browse files Browse the repository at this point in the history
  • Loading branch information
ElijahAhianyo committed Oct 5, 2023
1 parent d5d2445 commit c7113c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions reflex/components/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def _create_event_chain(
feature_name="EventChain",
reason="to avoid confusion, only use yield API",
deprecation_version="0.2.8",
removal_version="0.2.9",
removal_version="0.3.1",
)
events = []
for v in value:
Expand Down Expand Up @@ -296,7 +296,7 @@ def get_event_triggers(self) -> Dict[str, Any]:
feature_name=f"get_triggers ({self.__class__.__name__})",
reason="replaced by get_event_triggers",
deprecation_version="0.2.8",
removal_version="0.2.9",
removal_version="0.3.1",
)
deprecated_triggers = {
trigger: lambda: [] for trigger in deprecated_triggers
Expand All @@ -310,7 +310,7 @@ def get_event_triggers(self) -> Dict[str, Any]:
feature_name=f"get_controlled_triggers ({self.__class__.__name__})",
reason="replaced by get_event_triggers",
deprecation_version="0.2.8",
removal_version="0.2.9",
removal_version="0.3.1",
)

return {
Expand Down
2 changes: 1 addition & 1 deletion reflex/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def call_event_handler(
feature_name="EVENT_ARG API for triggers",
reason="Replaced by new API using lambda allow arbitrary number of args",
deprecation_version="0.2.8",
removal_version="0.2.9",
removal_version="0.3.1",
)
if len(args) == 1:
return event_handler()
Expand Down

0 comments on commit c7113c1

Please sign in to comment.