Skip to content

Add a comment about not importing defineExpose #2140

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

Merged
merged 1 commit into from
Jan 2, 2023

Conversation

skirtles-code
Copy link
Contributor

As mentioned in #2126, the example that introduces defineExpose doesn't currently mention that it shouldn't be imported. I've added a comment to try to address that.

From what I can tell, this is the first point in the guides that the concept of compiler macros is mentioned. We haven't yet introduced defineProps or defineEmits. I imagine a lot of people won't be clear what a 'macro' is in this context. This PR doesn't attempt to address that problem directly, though I have used the term 'compiler macro' rather than just 'macro' in the comment.

@netlify
Copy link

netlify bot commented Dec 31, 2022

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit 99d396e
🔍 Latest deploy log https://app.netlify.com/sites/vuejs/deploys/63af8ff3202d9000095522b3
😎 Deploy Preview https://deploy-preview-2140--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 site settings.

@NataliaTepluhina NataliaTepluhina merged commit f634c9b into vuejs:main Jan 2, 2023
Alex-Sokolov referenced this pull request in vuejs-translations/docs-ru Jan 2, 2023
Alex-Sokolov referenced this pull request in vuejs-translations/docs-ru Jan 2, 2023
* Add class to the Skip Link in the accessibility.md (#2123)

- CSS syntax is case-insensitive so it is better to use kebab case (skip-link) instead of camel case (skipLink)
- The anchor tag must have a class of skip-link

* Add a comment about not importing defineExpose (#2140)

Co-authored-by: Szilard Orban <[email protected]>
Co-authored-by: skirtle <[email protected]>
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.

2 participants