We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de676e0 commit b30f9adCopy full SHA for b30f9ad
app/routes/login.tsx
@@ -222,6 +222,8 @@ function Login({ loaderData: data }: Route.ComponentProps) {
222
const json = await optionsResponse.json()
223
const { options } = AuthenticationOptionsSchema.parse(json)
224
225
+ if (!isMounted) return
226
+
227
const authResponse = await startAuthentication({
228
optionsJSON: options,
229
useBrowserAutofill: true,
@@ -244,6 +246,8 @@ function Login({ loaderData: data }: Route.ComponentProps) {
244
246
| { status: 'success' }
245
247
| { status: 'error'; error: string }
248
249
250
251
if (verificationJson.status === 'error') {
252
throw new Error(verificationJson.error)
253
}
0 commit comments