Skip to content

Conversation

@ktsn
Copy link
Member

@ktsn ktsn commented Mar 19, 2018

@ktsn ktsn added the documentation Improvements or additions to documentation label Mar 19, 2018
docs/en/api.md Outdated
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.
To stop watching, call the returned handle function.
To stop watching, call the returned handler function.
Copy link
Member

@HerringtonDarkholme HerringtonDarkholme Mar 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe handle is the correct word here which means a reference to stop watch. https://en.wikipedia.org/wiki/Handle_(computing)

On the other hand, handler in computer science usually means a event listener that handles event. https://en.wikipedia.org/wiki/Handler

Indeed handle is quite hard to grasp here, maybe we can say the returned unwatch function ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I didn't know about the meaning of handle!
I guess the returned unwatch (unsubscribe) function would be clearer 🙂

@ktsn ktsn merged commit 432487b into vuejs:dev Mar 31, 2018
@ktsn ktsn deleted the api-docs-update branch March 31, 2018 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

2 participants