From 4d5a5545e68c308b0ccb373478d14ad483147823 Mon Sep 17 00:00:00 2001 From: Savannah Savings Date: Thu, 21 May 2026 20:34:29 +0000 Subject: [PATCH] fix: use queueMicrotask before setState in VerifyEmail effect [CAR-937] Avoids lint error 'Avoid calling setState() directly within an effect'. Co-Authored-By: Paperclip --- src/pages/VerifyEmail.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/VerifyEmail.tsx b/src/pages/VerifyEmail.tsx index d1c5fb3..bf79951 100644 --- a/src/pages/VerifyEmail.tsx +++ b/src/pages/VerifyEmail.tsx @@ -16,7 +16,7 @@ export function VerifyEmail() { const callbackURL = searchParams.get("callbackURL") || "/"; if (!token) { - setStatus("error"); + queueMicrotask(() => setStatus("error")); return; }