Skip to content

docs: clarify .once listener attachment semantics#3423

Closed
happysnaker wants to merge 1 commit into
vuejs:mainfrom
happysnaker:docs-once-listener-attachment
Closed

docs: clarify .once listener attachment semantics#3423
happysnaker wants to merge 1 commit into
vuejs:mainfrom
happysnaker:docs-once-listener-attachment

Conversation

@happysnaker

Copy link
Copy Markdown

Summary

  • clarify that .once applies once per listener attachment
  • explain that the listener is removed after the first invocation
  • note that recreating the element or child component attaches a fresh listener

Closes #3033

@netlify

netlify Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit cacf415
🔍 Latest deploy log https://app.netlify.com/projects/vuejs/deploys/6a435204a7882800083067c1
😎 Deploy Preview https://deploy-preview-3423--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@happysnaker

Copy link
Copy Markdown
Author

Resubmitted from a restored public fork as #3425. Closing this thread in favor of the new PR so the contribution stays reviewable from a proper fork relationship.

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

Successfully merging this pull request may close these issues.

v-on modifier .once triggers handler at most once... per what?

1 participant