diff --git a/active-rfcs/0004-global-api-treeshaking.md b/active-rfcs/0004-global-api-treeshaking.md index e0f27504..01a4f044 100644 --- a/active-rfcs/0004-global-api-treeshaking.md +++ b/active-rfcs/0004-global-api-treeshaking.md @@ -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] + ]) ]) } ``` diff --git a/active-rfcs/0008-render-function-api-change.md b/active-rfcs/0008-render-function-api-change.md index 6a3e4b59..7fb2e94a 100644 --- a/active-rfcs/0008-render-function-api-change.md +++ b/active-rfcs/0008-render-function-api-change.md @@ -262,11 +262,10 @@ export default { const barDir = resolveDirective('bar') // - return withDirectives( - h(comp), + return withDirectives(h(comp), [ [fooDir, this.x], [barDir, this.y] - ) + ]) } } ```