Tejus Parikh

I'm the CTO and co-founder of WideAngle and I write weekly about building startups and the technology that powers them from Atlanta, GA, the startup capital of the south. Follow me on twitter or subscribe to stay in touch.

Showing the Right Data with Out-of-Order Responses in Javascript

Posted on November 19, 2017

Javascript is an asynchronous language, which means sometimes things don't happen in the order you expect. This pattern ensures that the right response is shown.

Javascript is an asynchronous language, which means sometimes things don't happen in the order you expect. This pattern ensures that the right response is shown.

I recently added some advanced filtering to one of the screens in our AngularJS application. . Users could select checkboxes or values from a dropdown and the search results will automatically update. Everything worked great in development, but as soon as we pushed to our stating environment, our QA tests reported getting the incorrect results. A quick check of the network pane in Chrome showed the problem, our requests were coming back out-of-order.

Read the full post »