Super Sub Heroes
Players who score after coming off the bench — and the module that exists because nuqs cannot be imported from a Server Component.
/super-sub-heroes · src/composed/super-sub-heroes
Ranks substitutes by what they do after coming on, which is a different question from what they do per ninety.
Why state.ts is split from the parsers
state.ts builds nuqs parsers, and nuqs is client-only. Importing anything
from it into the Server Component that fetches this board fails the build with:
Attempted to call parseAsArrayOf() from the serverSo constants both sides need — DEFAULT_LEAGUE, DEFAULT_WINDOW — have to sit
somewhere neither pulls the other in. That is what the module is for.
The same problem, from the other direction, is why Value Bets keeps its URL-to-query mapping in a nuqs-free module. Any board read on the server and filtered in the browser meets it eventually.