You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -1711,7 +1711,7 @@ This approach requires VUE and router internals knowledge, keep in mind that it
1711
1711
1712
1712
## Testing provide/inject
1713
1713
1714
-
_NOTE_: Before you even start developing your components using `provide`/`inject`, please consider if you really need them. It is mentioned in [the official documentation](https://vuejs.org/v2/api/#provide-inject) that this feature is suitable only for certain scenarios. Also consider that both, `provide` and `inject` and not [reactive](https://vuejs.org/v2/guide/reactivity.html#ad), which only introduces limitation to the development that you have to keep in mind. Using "traditional" [one-way data flow](https://vuejs.org/v2/guide/components-props.html#One-Way-Data-Flow) between components may be more appropriate for your use case.
1714
+
_NOTE_: Before you even start developing your component using `provide`/`inject`, consider to spend a while thinking if you really need them. The [official documentation](https://vuejs.org/v2/api/#provide-inject) mention that this feature is suitable only for certain scenarios. Also consider that both, `provide` and `inject` and not [reactive](https://vuejs.org/v2/guide/reactivity.html#ad), which only introduces limitation to the development that you have to keep in mind. Using "traditional" [one-way data flow](https://vuejs.org/v2/guide/components-props.html#One-Way-Data-Flow) between components may be more appropriate for your use case.
1715
1715
1716
1716
For the testing purposes, let's have three components which communicate using `provide`/`inject`:
1717
1717
@@ -1724,7 +1724,7 @@ For the testing purposes, let's have three components which communicate using `p
1724
1724
</my-checkbox-list>
1725
1725
```
1726
1726
1727
-
... where `my-checkbox-list` is a wrapper providing an API for `my-checkbox`es to tell the list they are checked or not, and the `my-checkbox-list-status` is a component for displaying nice message to the user how many checkboxes have already been checked, e.g. `"2 out of 3 item(s) have been selected."`
1727
+
Where `my-checkbox-list` is a wrapper providing an API for `my-checkbox`es to tell the list if they are checked or not, and the `my-checkbox-list-status` is a component for displaying a message of how many checkboxes have already been checked, e.g. `"2 out of 3 item(s) have been selected"`.
1728
1728
1729
1729
### Testing component that injects values
1730
1730
@@ -1733,15 +1733,15 @@ For a component that only injects values we can use [provide option](https://vue
0 commit comments