Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize search params for server components #528

Merged
merged 2 commits into from
Dec 24, 2024

Conversation

waalbert
Copy link
Contributor

@waalbert waalbert commented Dec 24, 2024

Changes

  • Removes the use of useSearchParams in GuestLoginVerificationForm
  • Uses searchParams from GuestLogin and passes searchParams as props to GuestLoginVerificationForm
  • These changes allow for GuestLoginVerificationForm to no longer need to be a client component
  • Unmark searchParams as optional as Next.js always provides this to page components
  • Unpacks searchParams before using query parameters

Closes #521 and unblocks #403 to allow upgrading to Next.js 14.

Copy link
Contributor

github-actions bot commented Dec 24, 2024

Deploy preview for irvinehacks-site-2025 ready!

Name IrvineHacks Site
Preview Visit Preview
Commit a069601

IanWearsHat
IanWearsHat previously approved these changes Dec 24, 2024
taesungh
taesungh previously approved these changes Dec 24, 2024
Copy link
Member

@taesungh taesungh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating this.

apps/site/src/app/(main)/guest-login/GuestLogin.tsx Outdated Show resolved Hide resolved
apps/site/src/app/(main)/guest-login/GuestLogin.tsx Outdated Show resolved Hide resolved
@waalbert waalbert dismissed stale reviews from taesungh and IanWearsHat via a069601 December 24, 2024 17:54
@taesungh taesungh changed the title GuestLoginVerificationForm to server component Restructure search params for server components Dec 24, 2024
@taesungh taesungh changed the title Restructure search params for server components Reorganize search params for server components Dec 24, 2024
@waalbert waalbert merged commit 6d93b78 into main Dec 24, 2024
4 checks passed
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.

Elevate search params used by GuestLoginVerificationForm
3 participants