Closed alexhoma closed 5 years ago
I've never use it. (Well, not since this weekend).The main reason was to contribute for #hacktoberfest. Since your reply in https://github.com/algolia/algoliasearch-client-javascript/pull/789 I checked your profile and found this pretty cool library :+1: I think it's good to practice open source just getting into the dephts of the libraries en understanding what they're doing and how :)
@alexhoma when trying this out in detail i can still see the onFound callback being called when someone does this:
something which hides everything
''
(found)
t
(found)
te
(found)
Those last two should not call the callback I think
Thinking about it more, I fear some people might rely on this (broken) behaviour, because it has been like this for years. Would you mind if I revert your PR? I definitely still appreciate you looking into this
Regarding to the first comment, I thought this was the expected behavior :sweat_smile: But sure no problem! Makes sense that some people could see this as a bug instead of a fix. :+1:
Definitely still thanks for your contribution
Summary:
onFound
test was checking that the callback was called (but it was being called for every found item), so I've put a number of times that can be called when the input is changed, in order to fix the issue. :tada:Related issue: https://github.com/Haroenv/holmes/issues/87