Skip to content
Snippets Groups Projects
Commit c87deaee authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

Make references list client only to avoid hydration node mismatch

parent fefaa8ff
No related branches found
No related tags found
No related merge requests found
Pipeline #98194 passed with stages
in 1 minute and 43 seconds
<template>
<ProseOl v-if="computedItems.length > 0">
<ProseA
v-for="item in computedItems"
:key="item.DOI"
:href="item.href"
target="blank"
>
<ProseLi class="refArticle">
<div class="ref-title">{{ item.title }}.</div>
<div class="ref-authors">{{ item.authorsString }}</div>
<div>{{ item?.containerTitle }}</div>
</ProseLi>
</ProseA>
</ProseOl>
<ClientOnly fallback-tag="span" fallback="Loading references...">
<ProseOl v-if="computedItems.length > 0">
<ProseA
v-for="item in computedItems"
:key="item.DOI"
:href="item.href"
target="blank"
>
<ProseLi class="refArticle">
<div class="ref-title">{{ item.title }}.</div>
<div class="ref-authors">{{ item.authorsString }}</div>
<div>{{ item?.containerTitle }}</div>
</ProseLi>
</ProseA>
</ProseOl>
</ClientOnly>
</template>
<script setup lang="ts">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment