Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swap all use of get_event_triggers to rx.EventHandler props #3458

Merged
merged 4 commits into from
Jun 12, 2024

Conversation

Lendemor
Copy link
Collaborator

@Lendemor Lendemor commented Jun 7, 2024

what the title says.

@@ -223,35 +276,6 @@ def _get_imports(self):
},
)

def get_event_triggers(self) -> Dict[str, Callable]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing this has resulted in the addition of the base Component.get_event_triggers default triggers, is that appropriate for this component? or should we have a get_event_triggers here that returns an empty dict?

Copy link
Collaborator Author

@Lendemor Lendemor Jun 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding get_event_triggers that returns {} has caused events triggers to be completely removed from the docs on the data-editor page.

masenf
masenf previously approved these changes Jun 11, 2024
picklelo
picklelo previously approved these changes Jun 12, 2024
Copy link
Contributor

@picklelo picklelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we delete the EventTriggers class now?

@Lendemor Lendemor added the linear Created by Linear-GitHub Sync label Jun 12, 2024
@Lendemor
Copy link
Collaborator Author

Lendemor commented Jun 12, 2024

Can we delete the EventTriggers class now?

I'm not sure yet, they are still used in the base Component I think.

I'm hesitant to convert this one to rx.EventHandler right now because I'm not sure it won't have side effect.

if we can I'll do it in a follow up PR.

@Lendemor Lendemor dismissed stale reviews from picklelo and masenf via eb5d7fd June 12, 2024 17:29
@picklelo picklelo merged commit 463f782 into main Jun 12, 2024
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants