Skip to content

Fix signup crash: click event laundered into username route param#29281

Merged
chrisnojima merged 1 commit into
nojima/HOTPOT-next-670-clean-2from
nojima/HOTPOT-fix-signedout
Jun 3, 2026
Merged

Fix signup crash: click event laundered into username route param#29281
chrisnojima merged 1 commit into
nojima/HOTPOT-next-670-clean-2from
nojima/HOTPOT-fix-signedout

Conversation

@chrisnojima
Copy link
Copy Markdown
Contributor

ReloginContainer wired useRequestAutoInvite()'s raw fn directly as onSignup, so the click event became the username arg, flowed through navigateAppend as a route param, and crashed signup's username.trim().

Make the hook param required (username: string) so a bare assignment to a () => void handler prop is now a compile error, preventing the event from being laundered into a string-typed slot. No-username callers pass '' explicitly.

Base automatically changed from nojima/HOTPOT-faster-devices to nojima/HOTPOT-next-670-clean-2 June 3, 2026 20:30
ReloginContainer wired useRequestAutoInvite()'s raw fn directly as
onSignup, so the click event became the `username` arg, flowed through
navigateAppend as a route param, and crashed signup's username.trim().

Make the hook param required (username: string) so a bare assignment to
a () => void handler prop is now a compile error, preventing the event
from being laundered into a string-typed slot. No-username callers pass
'' explicitly.
@chrisnojima chrisnojima force-pushed the nojima/HOTPOT-fix-signedout branch from fca7656 to 0fb954b Compare June 3, 2026 20:39
@chrisnojima chrisnojima merged commit 7010fd6 into nojima/HOTPOT-next-670-clean-2 Jun 3, 2026
1 check was pending
@chrisnojima chrisnojima deleted the nojima/HOTPOT-fix-signedout branch June 3, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant