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
+39-4Lines changed: 39 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ export default {
37
37
}
38
38
```
39
39
40
-
####Subscriptions
40
+
### Subscriptions
41
41
42
42
Add an object for each subscription in a `$subscribe` object. The object key is the name of the publication and the value is either an array of parameters or a function returning an array of parameters. These subscription will be stopped when the component is destroyed.
You can add reactive properties that update from any Meteor reactive sources (like collections or session) by putting an object for each property in the `meteor` object. The object key is the name of the property (it shouldn't start with `$`), and the value is a function that returns the result.
107
107
@@ -166,7 +166,7 @@ computed: {
166
166
}
167
167
```
168
168
169
-
####Activating and deactivating meteor data
169
+
### Activating and deactivating meteor data
170
170
171
171
You can deactivate and activate again the meteor data on the component with `this.$startMeteor` and `this.$stopMeteor`:
172
172
@@ -199,7 +199,7 @@ export default {
199
199
}
200
200
```
201
201
202
-
####Freezing data
202
+
### Freezing data
203
203
204
204
This option will apply `Object.freeze` on the Meteor data to prevent Vue from setting up reactivity on it. This can improve the performance of Vue when rendering large collection lists for example. By default, this option is turned off.
205
205
@@ -208,6 +208,41 @@ This option will apply `Object.freeze` on the Meteor data to prevent Vue from se
208
208
Vue.config.meteor.freeze=true
209
209
```
210
210
211
+
### Without meteor option
212
+
213
+
**Not currently SSR-friendly**
214
+
215
+
With the special methods injected to the components, you can use reactive Meteor data without the `meteor` option:
0 commit comments