Skip to content

Commit

Permalink
fix(docs): remove setInterval when bulding docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pikax committed Jan 30, 2020
1 parent 4d73885 commit 23ed997
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/.vuepress/components/RetryExample.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<script>
import { ref, watch } from "@vue/composition-api";
import { useFetch, useRetry, exponentialDelay } from "vue-composable";
import { useFetch, useRetry, exponentialDelay, isClient } from "vue-composable";
export default {
name: "retry-example",
Expand Down Expand Up @@ -69,8 +69,9 @@ export default {
});
});
// TODO move to a composable
// just to have a nice countdown
setInterval(() => (dateNow.value = Date.now()), 10);
isClient && setInterval(() => (dateNow.value = Date.now()), 10);
return {
id,
Expand Down

0 comments on commit 23ed997

Please sign in to comment.