Fix hydration mismatch by wrapping sermon heading in ClientOnly
This commit is contained in:
@@ -48,7 +48,12 @@
|
||||
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
|
||||
<!-- Most Recent Sermon -->
|
||||
<div v-if="mostRecentSermon">
|
||||
<h2 class="text-2xl font-semibold text-gray-900 mb-6">{{ sermonHeading }}</h2>
|
||||
<ClientOnly>
|
||||
<h2 class="text-2xl font-semibold text-gray-900 mb-6">{{ sermonHeading }}</h2>
|
||||
<template #fallback>
|
||||
<h2 class="text-2xl font-semibold text-gray-900 mb-6">Most Recent Sermon</h2>
|
||||
</template>
|
||||
</ClientOnly>
|
||||
<div class="max-w-md mx-auto">
|
||||
<SermonCard :sermon="mostRecentSermon" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user