About 8,860,000 results
Open links in new tab
  1. What is the difference between ref, toRef and toRefs?

    Mar 11, 2021 · I have just started working with Vue 3 and the Composition API. What are the differences between ref, toRef and toRefs?

  2. vue.js - `ref ()` vs `reactive ()` in Vue 3? - Stack Overflow

    Apr 27, 2020 · I checked a few guides for Vue 3 and noticed that in some examples they used reactive(), while in others they created the same thing with ref(). They seem to behave very …

  3. What is the use of "ref" for reference-type variables in C#?

    Without ref, the reference is passed by value, and this doesn't happen. C# also has the 'out' keyword which is a lot like ref, except that with 'ref', arguments must be initialized before …

  4. When to use ref and when it is not necessary in C#

    Mar 12, 2009 · The ref keyword signifies that you're passing the actual pointer to the location and updating that pointer in the outside function, so the value in the outside function will change. …

  5. Difference between ref and out parameters in .NET [duplicate]

    What is the difference between ref and out parameters in .NET? What are the situations where one can be more useful than the other? What would be a code snippet where one can be used …

  6. Swagger/OpenAPI - use $ref to pass a reusable defined parameter

    Nov 19, 2014 · This feature already exists in Swagger 2.0. The linked ticket talks about some specific mechanics of it which doesn't affect the functionality of this feature. At the top level …

  7. reactjs - Is it safe to use ref.current as useEffect's dependency …

    Mar 1, 2020 · I'm aware that ref is a mutable container so it should not be listed in useEffect's dependencies, however ref.current could be a changing value. When a ref is used to store a …

  8. How to use $ref within a schema in OpenAPI 3.0?

    Nov 26, 2018 · I want to represent the following JSON as a schema in an OpenAPI 3.0 API definition: { get-question: { question-id:string } } So far, I have written: components: schemas: …

  9. Best practice: ref parameter or return value? - Stack Overflow

    Nov 21, 2011 · The version with ref tells me that I can start out with a list, and your method will modify the list I sent in, or even change it with another one. If that is your intention, do that. But …

  10. c# - should I use "ref" to pass a collection (e.g. List) by reference ...

    Aug 13, 2010 · Should I use "ref" to pass a list variable by reference to a method? Is the answer that "ref" is not needed (as the list would be a reference variable), however for ease in …