Skip to content

Commit

Permalink
fix(nuxt): hydration error for SSR-decoded hash (closes #46)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Mar 11, 2024
1 parent cef9bd9 commit cdcd98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/runtime/components/UnLazyImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const unlazy = useRuntimeConfig().public.unlazy as ModuleOptions
const hash = computed(() => props.thumbhash || props.blurhash)
// SSR-decoded BlurHash as PNG data URI placeholder image
const pngPlaceholder = (process.server && (props.ssr ?? unlazy.ssr) && hash.value)
const pngPlaceholder = (props.ssr ?? unlazy.ssr) && hash.value
? createPlaceholderFromHash({
hash: hash.value,
hashType: props.thumbhash ? 'thumbhash' : 'blurhash',
Expand Down

0 comments on commit cdcd98c

Please sign in to comment.