Skip to content

The description of this in setup is inconsistent with the source code #1063

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 4 commits into from
May 27, 2021

Conversation

coderwhy
Copy link
Contributor

Description of Problem

According to the content of the vue3 source code, the component instance has been created when the setup is executed.
But the description in the document is not created, so this cannot be used.
According to the original, this cannot be used because this is not bound to this during setup, and props, etc. cannot be used because options such as props, data, compute, etc. will be processed later.
Vue3 component instance is created
Execute the setup function

Proposed Solution

Modified the description information, which is relatively more accurate and will not cause misunderstandings.

Additional Information

Thanks for the excellent documentation.

Copy link
Contributor

@skirtles-code skirtles-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coderwhy. Thanks for the PR!

I agree that the current explanation is a little misleading.

I've made some suggestions on your proposed changes below.

required: true
}
required: true,
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please revert all of the unrelated formatting changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have submitted an inappropriate modification about the comma, thank you for pointing it out

Copy link
Contributor Author

@coderwhy coderwhy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed some formatted commas

@skirtles-code skirtles-code merged commit 42bb2a2 into vuejs:master May 27, 2021
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