-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
fix: do not wrap registering event listeners under effect #27
Conversation
Size ReportBundles
Usages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
event handler could be changed, so effect is necessary.
@sxzz Do you mean reactive event handler? |
@ydcjeff Yes |
Interesting! I didn't happen to see in the Vue docs tho. |
I tried reactive event handler in the Vue SFC playground, and found that Vue wraps that handler with inline function. onClick: _cache[0] || (_cache[0] = (...args) => (handler.value && handler.value(...args))) So I still think we do not need wrap under effect. |
Hi! I'm the autofix.ci troubleshooter bot. It looks like you correctly set up a CI job that uses the autofix.ci GitHub Action, but the autofix.ci GitHub App has not been installed for this repository. This means that autofix.ci unfortunately does not have the permissions to fix this pull request. If you are the repository owner, please install the app and then restart the CI workflow! 😃 |
Before:
After: