Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marcelmoreau opened this issue Oct 9, 2023 · 0 comments

Comments

@marcelmoreau
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant