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

[Feature]: Replace addEventListener with useEventListener composable #1182

Open
2 tasks
sadeghbarati opened this issue Aug 4, 2024 · 0 comments · May be fixed by #1201
Open
2 tasks

[Feature]: Replace addEventListener with useEventListener composable #1182

sadeghbarati opened this issue Aug 4, 2024 · 0 comments · May be fixed by #1201
Assignees

Comments

@sadeghbarati
Copy link
Collaborator

Describe the feature

Compiled output

// before
n.addEventListener("click",s=>{console.log("click")}) // length 53
n.removeEventListener...

// after 
// useEventListener
sl(t,"click",s=>{console.log("click")}) // length 39

This can reduce bundle size a bit

Additional information

  • I intend to submit a PR for this feature.
  • I have already implemented and/or tested this feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant