Asynchronous search-bar problems!? #788
Unanswered
RolandHesse
asked this question in
Web
Replies: 1 comment
-
This ticket literally explodes. Please take a step back and review the current user-story and align your efforts with the originally agreed-upon objectives. Supporting this ticket exceeds the feasible at this point. I already created a prototype for you that handles almost every AC you described in this discussions thread. Please settle down for a version of the search that works and define a follow-up user-story for any additional features you want it to handle. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there,
Unfortunately, our search-bar is still driving us crazy... What we want our search bar to do is the following:
Now, all of the above works - except for the last point: In order to trigger the desired behavior, the user has to click the pertinent last search term twice. At least this is so at the beginning (i.e., after a complete re-render of the site); after that, it works perfectly.
A second problem: Search results are not independent of what has been searched before. E.g., if you enter the letter "t" consecutively, the number of search results is diminished each time, until, when you have entered six "t"s ("tttttt") there is no matching results anymore. However, if you now start deleting "t"s, results only reappear when you deleted three "t"s. In short, in the "writing direction" results are shown until "ttttt" inclusively; in the "deleting direction", however, results only reappear at "ttt".
We could imagine that both problems are connected to the asynchronous behaviour of state in React. In any case, we were unable to solve this issues.
As always: Any feedback is more than welcome! 🙏
A PR for the latest version can be found here: PeetThesing/capstone-project_snippet-manager#50
Beta Was this translation helpful? Give feedback.
All reactions