Skip to content

Commit

Permalink
docs: improve explanation for watch method
Browse files Browse the repository at this point in the history
  • Loading branch information
brawaru committed Dec 23, 2022
1 parent acbf61d commit ed072c5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ export interface AsyncComputedOptions<R, S> {
*
* Use watch method whenever references are not accessed before the first
* asynchorous operation in the getter method, otherwise Vue won't be able to
* subscribe the getter for updates. You can refactor your getter to access
* the reactive references before any asynchorous operation, but in most cases
* it makes code less clear.
* subscribe the getter for updates.
*
* Alternatively, you can refactor your getter function to access the reactive
* references before any asynchorous operations, but in most cases such
* hoisting makes code look less clear.
*/
watch?(): S

Expand Down

0 comments on commit ed072c5

Please sign in to comment.