TypeScript · hard
Typeahead fires two searches, and the first one is slower. It finishes last and paints over the newer result, so Support sees stale names in screenshots. The most recently started search must own the display.
When two requests overlap, display the result from the request started last, even if the first finishes later. paintNames("Ada", "Bob") resolves to "Bob", and paintNames("Bob", "Ada") to "Ada".
workspace/
└── src/
└── search.ts (slow response paints over the latest)With sharpen installed, this command opens exactly this challenge in your local arena:
sharpen 33
First time? The full install is right below.
npm install -g @juanwmedia/sharpen sharpen 33 npx @juanwmedia/sharpen 33 sharpen update