docs
docs copied to clipboard
📄 Documentation for Vue 3
I've encountered multiple people trying to use `await` in `setup()`, writing code like: ```js async setup() { const data = await myAPICall() return { data } } ``` Which fails...
With the arrival of the composition API, renderless components have become a bit less useful—IMO, composition functions are more versatile, easier to author, and easier to consume than renderless components....
I just found out that there's a doc for creating global components: [Automatic Global Registration of Base Components](https://v3.vuejs.org/cookbook/automatic-global-registration-of-base-components.html#base-example). This section of the documentation is not generally reached in my opinion...
Firstly, I' m studying vue3 and I don' t know that should my question be treated as an issues. When I see the document about vue3, I found a problem...
You can define the Object type props like this. It will work fine. ```ts export default defineComponent({ props: { newProp: { type: Object default: () => { return { a:...
In v3 `v-on` was merged with `props`, for that to happen props started with `on*` are treated as events ```html h(Comp, { onMyEvent: [ _cache[0] || (_cache[0] = $event =>...
The Documentation for writing SSR Transforms for directives, beside a very basic noop example, is nonexistent. I've written an Image Lazy Loading Directive and want to provide an SSR Transform....
Please provide detailed documentation of "@vue/reactivity" in order to use it outside of the vue application. https://github.com/vuejs/vue-next/issues/4332#issuecomment-898430861
This is an umbrella issue, intended to gather examples of common problems, mistakes and misunderstandings when using the proxy-based reactivity system. The objective is to gather source material that might...
- Current documentation: - https://v3.vuejs.org/guide/instance.html#lifecycle-diagram - Wanted knowledge: - how does a component play together with v-if when the condition becomes true / false. - what happens with data: is...