Skip to content

Commit

Permalink
docs: add template wrapper for client-only placeholder (#1976)
Browse files Browse the repository at this point in the history
  • Loading branch information
KareemDa authored Jan 10, 2022
1 parent 48e51b7 commit b2d1db2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/en/docs/3.features/8.nuxt-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,9 @@ Use a slot as placeholder until `<client-only />` is mounted on client-side.
<comments />
<!-- loading indicator, rendered on server-side -->
<comments-placeholder #placeholder />
<template #placeholder>
<comments-placeholder />
</template>
</client-only>
</div>
</template>
Expand Down

0 comments on commit b2d1db2

Please sign in to comment.