Keep Slow Fortnite Shop Requests From Overwriting New Results

Search for outfits in a shop tracker, immediately switch to emotes, and watch what happens when the first request takes longer. If the old response wins, your filters can say Emotes while the cards are all outfits. The bug is easiest to test with deliberate response ordering.

Pair results with the state that requested them

Give each request a sequence number and capture the active inputs when you start it. Include the rotation and locale if either affects the response. Accept the result only if it still describes the current request. Aborting an obsolete request saves work, but keep the acceptance check because a callback may already be queued by the time you abort.

Use two promises you can resolve by hand

  1. Start request A for Outfits and leave it pending.
  2. Start request B for Emotes. Resolve B first with two unmistakably different emote fixtures.
  3. Resolve A. Verify that the visible cards, count, and selected filters still describe B.
  4. Repeat with A rejecting after B succeeds. The resulting error must not replace valid Emotes results or trigger a fresh retry for Outfits.

Run the same test with a language switch. Inspect the labels and result count as well as the selected language since those can update on different schedules. Use a live example such as the Fortnite Item Shop on SkinRotation for a manual navigation check after the deterministic test passes.