Skip to content

Conversation

@antfu
Copy link
Member

@antfu antfu commented Apr 1, 2020

This aligns with the latest RFC: https://vue-composition-api-rfc.netlify.com/api.html#watch

lazy is renamed to immediate and default to false.

This is a BREAKING CHANGE. Not sure if we should make backward compatible and raise warnings.

Resolves #266

@antfu
Copy link
Member Author

antfu commented Apr 22, 2020

Any update on this? My lib vueuse is to provide utils for both Vue 2 and 3. This inconsistent makes me hard to support both versions through the same API.

Is there any plan to merge this PR? Let me know if there are any changes needed. Thanks.

@zgayjjf
Copy link

zgayjjf commented May 22, 2020

Is there any plan to merge or improve this PR?
The difference between RFC and this package confused a lot of users.

@antfu
Copy link
Member Author

antfu commented May 31, 2020

Closing this as it's already being implemented in #311.

@antfu antfu closed this May 31, 2020
@antfu antfu deleted the fix/watch-lazy branch June 3, 2020 20:04
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

Successfully merging this pull request may close these issues.

Adjust watch behaviour to match latest RFC update

4 participants