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

Optimize event handlers of DOM elements #20

Closed
oamaok opened this issue Aug 27, 2024 · 1 comment
Closed

Optimize event handlers of DOM elements #20

oamaok opened this issue Aug 27, 2024 · 1 comment

Comments

@oamaok
Copy link
Owner

oamaok commented Aug 27, 2024

  • Add a record Record<EventType, Handler> for each HTML element instance
  • Create a lambda which accesses event.type and calls the proper handler
  • On update, update the record instead of remounting the handler
@oamaok
Copy link
Owner Author

oamaok commented Sep 4, 2024

Resolved in 47a43d1

@oamaok oamaok closed this as completed Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant