Skip to content

Commit

Permalink
feat: single cahse
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai-peteu committed Jul 22, 2024
1 parent 7ed675c commit 32c4851
Showing 1 changed file with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
<template>
<div>
<slot
v-if="!loading && passThrough"
:has-analytics="analytics"
:has-percentiles="percentiles"
/>
<slot
v-else-if="!loading"
:has-analytics="analytics"
:has-percentiles="percentiles"
name="fallback"
/>
</div>
<slot
:has-analytics="analytics"
:has-percentiles="percentiles"
:name="!loading && passThrough ? '' : 'fallback'"
/>
</template>
<script setup lang="ts">
import { useAnalyticsConfigStore } from '../stores'
Expand Down

0 comments on commit 32c4851

Please sign in to comment.