Skip to content

Commit 9fbbf7e

Browse files
bailnlsdras
authored andcommitted
Functional components will appear in the vue devtools 5.x version (vuejs#2112)
* Functional components will appear in the vue devtools 5.x version * keep the original paragraph without the "However" sentence. Co-Authored-By: bailnl <[email protected]>
1 parent 37d1c8f commit 9fbbf7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/render-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ Everything the component needs is passed through `context`, which is an object c
544544

545545
After adding `functional: true`, updating the render function of our anchored heading component would require adding the `context` argument, updating `this.$slots.default` to `context.children`, then updating `this.level` to `context.props.level`.
546546

547-
Since functional components are just functions, they're much cheaper to render. However, the lack of a persistent instance means they won't show up in the [Vue devtools](https://github.com/vuejs/vue-devtools) component tree.
547+
Since functional components are just functions, they're much cheaper to render.
548548

549549
They're also very useful as wrapper components. For example, when you need to:
550550

0 commit comments

Comments
 (0)