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

docs: add explanation for template-refs defineExpose before await #3097

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ayugioh2003
Copy link

@ayugioh2003 ayugioh2003 commented Nov 7, 2024

Description of Problem

In the child component’s <script setup>, if defineExpose is called before an await operation, the parent component will not be able to access the exposed properties and methods.

refs

Proposed Solution

Add an explanation in the template-refs.md document to provide users with a workaround for this issue. If a PR later resolves this issue, update this document accordingly.

Additional Information

I spent several hours on this issue. If the document provides this solution, it will help many people

Copy link

netlify bot commented Nov 7, 2024

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit 7de8b57
🔍 Latest deploy log https://app.netlify.com/sites/vuejs/deploys/672c628737c1740008d6bbfe
😎 Deploy Preview https://deploy-preview-3097--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 configuration.

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.

1 participant