[PR #5166] [MERGED] fix(client): missing isRefetching type in react useSession #31420

Closed
opened 2026-04-17 22:17:31 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5166
Author: @ThibautCuchet
Created: 10/8/2025
Status: Merged
Merged: 10/8/2025
Merged by: @himself65

Base: canaryHead: fix/missing-refetching-state-in-react-lib


📝 Commits (1)

  • c04526b fix: missing refetching state in react lib

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/client/react/index.ts (+1 -0)

📄 Description

This PR adds the isRefetching field to the useSession hook type definition.
The value was already available in the hook but wasn’t exposed in the TypeScript types.


Summary by cubic

Add isRefetching to the useSession hook’s TypeScript type in the React client. This brings the types in line with the existing runtime value and prevents TypeScript errors when checking the refetch state.


🔄 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/5166 **Author:** [@ThibautCuchet](https://github.com/ThibautCuchet) **Created:** 10/8/2025 **Status:** ✅ Merged **Merged:** 10/8/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/missing-refetching-state-in-react-lib` --- ### 📝 Commits (1) - [`c04526b`](https://github.com/better-auth/better-auth/commit/c04526bdc55aa51239f7d1d500fbf28d5a830b1b) fix: missing refetching state in react lib ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/react/index.ts` (+1 -0) </details> ### 📄 Description This PR adds the isRefetching field to the useSession hook type definition. The value was already available in the hook but wasn’t exposed in the TypeScript types. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add isRefetching to the useSession hook’s TypeScript type in the React client. This brings the types in line with the existing runtime value and prevents TypeScript errors when checking the refetch state. <!-- 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-17 22:17:31 -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#31420