-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Minor #10999
Closed
Closed
Minor #10999
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…list tracking (vuejs#10397) Bug fixes close vuejs#10236 close vuejs#10069 PRs made stale by this one close vuejs#10290 close vuejs#10354 close vuejs#10189 close vuejs#9480
ref vuejs#10173 Instead of exposing `getCurrentEffect`, this version accepts a second argument to suppress the no-active-effect warning.
…s and respect `expose` on defineComponent (vuejs#3399) close vuejs#3367
…n language tools (vuejs#10801)
Also allow prohibiting usage via config. RFC: vuejs/rfcs#502
…entPublicInstance close vuejs#10842
This commit adds a new function called `ref` to the core of the codebase. The `ref` function allows developers to create reactive ref objects, which include a `value` property and a `reset` method. Internally, the `ref` function utilizes the existing `reactive` function to create the reactive object. This change addresses the need for an easier way to create reactive ref objects. Previously, developers had to manually implement this functionality, leading to code duplication and potential errors. With the `ref` function, creating reactive ref objects becomes simpler and more consistent. Details: - Define the `ref` function to create reactive ref objects - Include a `value` property in the ref object - Implement the `reset` method to reset the value property to its initial value Footer: - Closes: vuejs#674
❌ Deploy Preview for vue-sfc-playground failed.
|
❌ Deploy Preview for vue-next-template-explorer failed.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit adds a new function called
ref
to the core of the codebase. Theref
function allows developers to create reactive ref objects, which include avalue
property and areset
method. Internally, theref
function utilizes the existingreactive
function to create the reactive object.This change addresses the need for an easier way to create reactive ref objects. Previously, developers had to manually implement this functionality, leading to code duplication and potential errors. With the
ref
function, creating reactive ref objects becomes simpler and more consistent.