1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-06 23:30:42 +02:00

Fix hydration error

This commit is contained in:
Kamran Ahmed
2025-05-23 12:42:03 +01:00
parent 62d364d25c
commit 8cacfaff47

View File

@@ -66,7 +66,11 @@ export function EmailLoginForm(props: EmailLoginFormProps) {
const passwordFieldId = `form:${useId()}`;
return (
<form className="w-full" onSubmit={handleFormSubmit}>
<form
className="w-full"
onSubmit={handleFormSubmit}
suppressHydrationWarning={true} // Hubspot adds data-* attributes which causes hydration errors
>
<label htmlFor={emailFieldId} className="sr-only">
Email address
</label>