Debounced `onSearch` handler being cancelled prematurely in AsyncTypeahead
See original GitHub issueI just want to tell you if this not working it because i try install last version, and i check on package,json i see this "react-bootstrap-typeahead": "^5.0.0-rc.3"
when i try using this version and run example it’s not working, but after i change version "react-bootstrap-typeahead": "4.1.0"
its running, so maybe there is an issue on new version for OnSearch
and OnPagination
options, thank you for making awesome plugin.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
onChange handler in async typeahead is not called when ...
Based on the code in Search.jsx , it doesn't look like onChange is being passed on to the typeahead, so be sure to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Digging deeper into this I found it was an error of mine. I was using
onInputChange
to get the value together withonChange
. They were calling the same callback function to set the application state on a higher level of my application. This was working up to 5.0.0-rc.2, but prevented somehow the firing ofonSearch
in 5.0.0.onInputChange
works as expected, the error was on my side. Probably this helps also @ivanjuliant.I’ve added a warning to the v5 upgrade guide for now, since the new behavior is a potentially breaking change introduced in the latest major version. I’ll see how things go and if a lot of people have problems I may consider adding a warning in the code itself.