-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the bug
My site has some code:
<button aria-expanded={ showing === i} ... />
The aria-expanded attribute is a boolean, but gets compared to a string. As a result, the hydration code believes that the DOM needs to be updated which is a relatively expensive operation
I've included some suggestions from Rich and Dominik below regarding fixes
Reproduction
Simply put the code above in a SvelteKit project
Logs
No response
System Info
I'm on `5.0.0-next.1`Severity
annoyance

