-
Notifications
You must be signed in to change notification settings - Fork 14
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
Async subject causes incorrect behaviour of an input caret #27
Comments
Hmmm, I've built quite a few things with redux-most and haven't experienced that before. I actually built a production auto-complete search feature with it at a company and did not run into that problem, so I'm a little confused about what's going on here. I'll try to dig into your example soon. If it's not some other sort of bug, and is, indeed, due to the asynchronous work in most-subject, there is an alternative Thanks for letting me know. Will try to look at it soon. |
@TylorS167 thoughts? |
I forgot to notice that absolutely same setup based on redux-observable works as expected |
@dmitry-korolev I have confirmed that it is, indeed, an issue with the You can see that switching to using https://codesandbox.io/s/8n5owr4lml However, it looks like most-subject has a new major version (6.0.0), which has another new API, and is intended to work with the new I do plan to rewrite this library using Thanks again for letting me know about this problem! |
This is fixed and in the new |
I've built simplest possible example, you can find it here: https://codesandbox.io/s/1y8rlnlp83
It looks like after an action is dispatched, actual emit of an action$ source happens in the next task, which causes the store to be updated too late. That causes React to directly set a value property of an input, which makes the caret to jump at the end.
An issue is neither with most itself, nor with react. I suppose the problem is in the async nature of most-subject.
The text was updated successfully, but these errors were encountered: