[PR #3775] [MERGED] chore(demo): replace isLoading using useTransition #13245

Closed
opened 2026-04-13 08:50:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3775
Author: @himself65
Created: 8/4/2025
Status: Merged
Merged: 8/4/2025
Merged by: @Bekacru

Base: mainHead: himself65/2025/08/03/is-loading


📝 Commits (2)

  • 673a94f fix: use useTransition for isLoading
  • 6498b64 fixup! fix: use useTransition for isLoading

📊 Changes

5 files changed (+101 additions, -101 deletions)

View changed files

📝 demo/nextjs/app/client-test/page.tsx (+19 -21)
📝 demo/nextjs/app/dashboard/user-card.tsx (+21 -19)
📝 demo/nextjs/components/sign-in.tsx (+11 -11)
📝 docs/app/docs/[[...slug]]/page.client.tsx (+5 -8)
📝 docs/components/generate-apple-jwt.tsx (+45 -42)

📄 Description

This is the recommended way since React 19, see video https://www.youtube.com/live/T8TZQ6k4SLE?si=Eu7tIOZlWaZn1NPp&t=9066

Summary by cubic

Replaced all manual isLoading state management with React's useTransition hook in demo and docs components for better handling of loading states.

  • Refactors
    • Updated loading logic in sign-in, user card, client test, copy button, and Apple JWT generator components to use useTransition.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/3775 **Author:** [@himself65](https://github.com/himself65) **Created:** 8/4/2025 **Status:** ✅ Merged **Merged:** 8/4/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `himself65/2025/08/03/is-loading` --- ### 📝 Commits (2) - [`673a94f`](https://github.com/better-auth/better-auth/commit/673a94f68e838fa18387b7804297d60cc3de6d41) fix: use `useTransition` for isLoading - [`6498b64`](https://github.com/better-auth/better-auth/commit/6498b6448f46958f557eaf24572be411b0f7fd1a) fixup! fix: use `useTransition` for isLoading ### 📊 Changes **5 files changed** (+101 additions, -101 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/app/client-test/page.tsx` (+19 -21) 📝 `demo/nextjs/app/dashboard/user-card.tsx` (+21 -19) 📝 `demo/nextjs/components/sign-in.tsx` (+11 -11) 📝 `docs/app/docs/[[...slug]]/page.client.tsx` (+5 -8) 📝 `docs/components/generate-apple-jwt.tsx` (+45 -42) </details> ### 📄 Description This is the recommended way since React 19, see video https://www.youtube.com/live/T8TZQ6k4SLE?si=Eu7tIOZlWaZn1NPp&t=9066 <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Replaced all manual isLoading state management with React's useTransition hook in demo and docs components for better handling of loading states. - **Refactors** - Updated loading logic in sign-in, user card, client test, copy button, and Apple JWT generator components to use useTransition. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 08:50:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#13245