nuxt / image

Plug-and-play image optimization for Nuxt applications.
https://image.nuxt.com
MIT License
1.33k stars 271 forks source link

fix: prevent hydration mismatch in `<NuxtImg>` #1445

Closed DamianGlowala closed 1 month ago

DamianGlowala commented 1 month ago

๐Ÿ”— Linked issue

resolves https://github.com/nuxt/image/issues/1443

โ“ Type of change

๐Ÿ“š Description

Renames _attrs to imgAttrs in <NuxtImg> component.

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 62.04%. Comparing base (62b4387) to head (93b7c1a). Report is 6 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1445 +/- ## ======================================= Coverage 62.04% 62.04% ======================================= Files 79 79 Lines 3602 3602 Branches 391 390 -1 ======================================= Hits 2235 2235 Misses 1337 1337 Partials 30 30 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.