Next.js 16, React 19.2, Identities page, Invitations identities step, PNPM Catalogs (#381)

* Upgraded to Next.js 16
* Refactored code to comply with React 19.2 ESLint rules
* Refactored some useEffect usages with the new useEffectEvent
* Added Identities page and added second step to set up an identity after accepting an invitation
* Updated all dependencies
* Introduced PNPM catalogs for some frequently updated dependencies
* Bugs fixing and improvements
This commit is contained in:
Giancarlo Buomprisco
2025-10-22 11:47:47 +09:00
committed by GitHub
parent ea0c1dde80
commit 2c0d0bf7a1
98 changed files with 4812 additions and 4394 deletions

View File

@@ -1,6 +1,6 @@
'use client';
import { useEffect } from 'react';
import { useEffect, useEffectEvent } from 'react';
import { useRouter } from 'next/navigation';
@@ -227,12 +227,16 @@ function FactorsListContainer({
const isSuccess = factors && !isLoading && !error;
const signOutFn = useEffectEvent(() => {
void signOut.mutateAsync();
});
useEffect(() => {
// If there is an error, sign out
if (error) {
void signOut.mutateAsync();
void signOutFn();
}
}, [error, signOut]);
}, [error]);
useEffect(() => {
// If there is only one factor, select it automatically