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

Input value gets overridden after mutation #4

Open
andrei-gheorghiu opened this issue May 21, 2019 · 0 comments
Open

Input value gets overridden after mutation #4

andrei-gheorghiu opened this issue May 21, 2019 · 0 comments

Comments

@andrei-gheorghiu
Copy link

andrei-gheorghiu commented May 21, 2019

Please consider the following example:

https://codesandbox.io/s/vdebounce-input-override-ej4nz

Greatly simplified from a large application using observables to fetch filtered data from an API.
I've mocked the API response with a random timeout. The behavior of the input is very similar to what I get in the app.

When the responses come in, the input loses a 1 or 2 letters if you're typing.
If I drop the v-debounce or the .lazy modifier, input works fine but there's no debounce.

Is there a fix for this or do I have to use a different debounce wrapper (i.e: lodash) inside the watcher and dump v-debounce altogether?

Thank you.


Note: I also created the v-debounce tag on StackOverflow.

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