docs icon indicating copy to clipboard operation
docs copied to clipboard

Composables async-state-example code block does not match playground's code

Open marcelmoreau opened this issue 2 years ago • 0 comments

https://vuejs.org/guide/reusability/composables.html#async-state-example

near the bottom of this section, when discussing the watchEffect() / toValue() refactor, the copy reads:

Notice that toValue(url) is called inside the watchEffect callback. This ensures that any reactive dependencies accessed during the toValue() normalization are tracked by the watcher.

the code block above on this docs page does not match this. it appears to be referencing code that can be seen behind the updated version of useFetch() code link

marcelmoreau avatar Oct 09 '23 14:10 marcelmoreau