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
+33
Original file line number
Diff line number
Diff line change
@@ -226,6 +226,39 @@ computed: {
226
226
}
227
227
```
228
228
229
+
#### Activating and deactivating meteor data
230
+
231
+
You can deactivate and activate again the meteor data on the component with `this.$startMeteor` and `this.$stopMeteor`:
232
+
233
+
```javascript
234
+
exportdefault {
235
+
meteor: {
236
+
// ...
237
+
},
238
+
239
+
methods: {
240
+
activate () {
241
+
this.$startMeteor()
242
+
},
243
+
244
+
deactivate () {
245
+
this.$stopMeteor()
246
+
},
247
+
},
248
+
}
249
+
```
250
+
251
+
You can also prevent meteor data from starting automatically with `$lazy`:
252
+
253
+
```javascript
254
+
exportdefault {
255
+
meteor: {
256
+
$lazy:true,
257
+
// ...
258
+
},
259
+
}
260
+
```
261
+
229
262
#### Freezing data
230
263
231
264
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.
0 commit comments