Skip to content

Commit cdcd98c

Browse files
fix(nuxt): hydration error for SSR-decoded hash (closes #46)
1 parent cef9bd9 commit cdcd98c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nuxt/src/runtime/components/UnLazyImage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const unlazy = useRuntimeConfig().public.unlazy as ModuleOptions
7373
const hash = computed(() => props.thumbhash || props.blurhash)
7474
7575
// SSR-decoded BlurHash as PNG data URI placeholder image
76-
const pngPlaceholder = (process.server && (props.ssr ?? unlazy.ssr) && hash.value)
76+
const pngPlaceholder = (props.ssr ?? unlazy.ssr) && hash.value
7777
? createPlaceholderFromHash({
7878
hash: hash.value,
7979
hashType: props.thumbhash ? 'thumbhash' : 'blurhash',

0 commit comments

Comments
 (0)