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

Adjust watch behaviour to match latest RFC update #266

Closed
trygveaa opened this issue Feb 28, 2020 · 1 comment
Closed

Adjust watch behaviour to match latest RFC update #266

trygveaa opened this issue Feb 28, 2020 · 1 comment
Labels
has PR misalignment Misalign with the latest RFC

Comments

@trygveaa
Copy link

The documentation for watch states:

It also is lazy by default - i.e. the callback is only called when the watched source has changed.

However, when I use it, I see that the callback is called even if the data I watch doesn't change after I called watch. If I set the option { lazy: true }, the callback is not called before the data change.

I also think the documentation should state that this is the same option as immediate in
Vue 2. Unless there are any differences? If so, they should be stated.

@LinusBorg
Copy link
Member

The RFC was changed in that regard 10 hours ago, see here.

This plugin has to be updated to match the change in he RFC.

@LinusBorg LinusBorg added the enhancement New feature or request label Feb 28, 2020
@LinusBorg LinusBorg changed the title Documentation for watch is unclear/wrong Adjust watch behaviour to match latest RFC update Feb 28, 2020
@sodatea sodatea added the contribution welcome The team would welcome a contribution from the community for this issue label Mar 3, 2020
@antfu antfu added has PR misalignment Misalign with the latest RFC and removed contribution welcome The team would welcome a contribution from the community for this issue enhancement New feature or request labels May 31, 2020
@antfu antfu closed this as completed Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has PR misalignment Misalign with the latest RFC
Projects
None yet
4 participants