Consider extracting this block into a helper for readability. First, install the dependencies, and then build the project. Please let me know if you need any further information from my side. The page fails to load when the search query contains a special character. To reproduce the issue, clear the cache and reload the page. The bug happened because the counter was reset inside the loop. The race condition disappeared once we added a lock around the update.
Click to start typing