Episode 16 game · Raiden · Lightning

Outrun the Twin Oni

Kai clicks Kitsu, then Raiden, and the card ends up showing Kitsu. Feel two fetches race and the slow one paint last, give the effect a cleanup that aborts the old request, then prove that only the latest request gets to answer.

RaidenTwo messengers, Kai. Click Kitsu, then click Raiden straight away, and watch who comes home last.
16Seal 16
kai.app/heroes

Effect: no cleanup

selected: nobodyPick a hero
Network · Fetch/XHR Kitsu’s server is slow today

    Each click starts a request. Watch the order they finish in.

    1 · Feel the race

    This page fetches the selected hero in an effect with no cleanup. Click Kitsu, then Raiden within two seconds.

    Arrival order isn’t click order

    Two requests in flight can finish in any order. The last setState wins.

    Clean up the old run

    Pass { signal } to fetch and return () => controller.abort() from the effect.

    Silence only AbortError

    Ignore err.name === 'AbortError'; every other error is real and should show.