Skip to content

Commit 3cd3b6a

Browse files
authored
Merge pull request #42 from vuejs/master
2.0
2 parents 6d6decb + 6b575b7 commit 3cd3b6a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/guide/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ The `type` can be one of the following native constructors:
417417

418418
In addition, `type` can also be a custom constructor function and the assertion will be made with an `instanceof` check.
419419

420-
When a prop validation fails, Vue will refuse to set the value on the child component and throw a warning if using the development build.
420+
When a prop validation fails, Vue will produce a console warning (if using the development build).
421421

422422
## Custom Events
423423

src/guide/migration.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,11 @@ Use components instead.
15311531

15321532
### `Vue.partial` <sup>deprecated</sup>
15331533

1534-
Use [functional components](render-function.html#Functional-Components) instead.
1534+
Partials have been deprecated in favor of more explicit data flow between components, using props. Unless you're using a partial in a performance-critical area, the recommendation is to simply use a [normal component](components.html) instead. If you were dynamically binding the `name` of a partial, you can use a [dynamic component](http://vuejs.org/guide/components.html#Dynamic-Components).
1535+
1536+
If you happen to be using partials in a performance-critical part of your app, then you should upgrade to [functional components](render-function.html#Functional-Components). They must be in a plain JavaScript file (rather than in a `.vue` file) and are stateless and instanceless, just like partials. This makes rendering extremely fast.
1537+
1538+
A benefit of functional components over partials is that they can be much more dynamic, because they grant you access to the full power of JavaScript. There is a cost to this power however. If you've never used a component framework with render functions before, they may take a bit longer to learn.
15351539

15361540
{% raw %}
15371541
<div class="upgrade-path">

0 commit comments

Comments
 (0)