Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions active-rfcs/0004-global-api-treeshaking.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ In addition to public APIs, many of the internal components / helpers can be exp
Can be compiled into the following (for explanation purposes, not exact output):

``` js
import { h, Transition, applyDirectives, vShow } from 'vue'
import { h, Transition, withDirectives, vShow } from 'vue'

export function render() {
return h(Transition, [
applyDirectives(h('div', 'hello'), this, [vShow, this.ok])
withDirectives(h('div', 'hello'), [
[vShow, this.ok]
])
])
}
```
Expand Down
5 changes: 2 additions & 3 deletions active-rfcs/0008-render-function-api-change.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,10 @@ export default {
const barDir = resolveDirective('bar')

// <some-global-comp v-foo="x" v-bar="y" />
return withDirectives(
h(comp),
return withDirectives(h(comp), [
[fooDir, this.x],
[barDir, this.y]
)
])
}
}
```
Expand Down