Skip to content

Commit ca15810

Browse files
fix: removed provide-inject warning
1 parent c49e28e commit ca15810

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/v2/api/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,8 +1059,6 @@ type: api
10591059
10601060
- **Details:**
10611061
1062-
<p class="tip">`provide` and `inject` are primarily provided for advanced plugin / component library use cases. It is NOT recommended to use them in generic application code.</p>
1063-
10641062
This pair of options are used together to allow an ancestor component to serve as a dependency injector for all its descendants, regardless of how deep the component hierarchy is, as long as they are in the same parent chain. If you are familiar with React, this is very similar to React's context feature.
10651063
10661064
The `provide` option should be an object or a function that returns an object. This object contains the properties that are available for injection into its descendants. You can use ES2015 Symbols as keys in this object, but only in environments that natively support `Symbol` and `Reflect.ownKeys`.

0 commit comments

Comments
 (0)