|
@@ -169,7 +169,7 @@ const store = new Vuex.Store({ ...options })
|
|
|
|
|
|
- `watch(fn: Function, callback: Function, options?: Object): Function`
|
|
- `watch(fn: Function, callback: Function, options?: Object): Function`
|
|
|
|
|
|
- Reactively watch `fn`'s return value, and call the callback when the value changes. `fn` receives the store's state as the first argument, and getters as the second argument. Accepts an optional options object that takes the same options as [Vue's `vm.$watch` method](https://vuejs.org/v2/api/#watch).
|
|
|
|
|
|
+ Reactively watch `fn`'s return value, and call the callback when the value changes. `fn` receives the store's state as the first argument, and getters as the second argument. Accepts an optional options object that takes the same options as [Vue's `vm.$watch` method](https://vuejs.org/v2/api/#vm-watch).
|
|
|
|
|
|
To stop watching, call the returned unwatch function.
|
|
To stop watching, call the returned unwatch function.
|
|
|
|
|