QingWei-Li / vue-delay

🐌 Delay rendering component for Vue.js
https://cinwell.com/vue-delay/
17 stars 1 forks source link

Delay doesn't work both ways #1

Closed musafarouk closed 3 years ago

musafarouk commented 6 years ago

Delay doesn't work when going back to previously visited pages.

QingWei-Li commented 6 years ago

Any example?

musafarouk commented 6 years ago

This is the link to the finished work. Try visiting the pages twice. https://www.elitecourierdelivery.info/

QingWei-Li commented 6 years ago

I don't understand where the delay component is used, and how do I trigger the bug?

musafarouk commented 6 years ago

I put these in the views i want the delay to work

<template>
<delay :wait="5000">
  <div slot="loading">
    <br><br><br><br>
    <div class="loading-spinner">
      <center>
      <swapping-squares-spinner
  :animation-duration="1000"
  :size="65"
  color="#34A853"
/>
</center>
      </div>
  </div>
  </delay>

<script>
import { SwappingSquaresSpinner } from "epic-spinners";
import Delay from "vue-delay";

export default {
    name: "home",
    components: {
      Card,
      Delay,
      SwappingSquaresSpinner
    },
}
</script>
QingWei-Li commented 6 years ago

I don't see any errors. Maybe you should provide a working example that can trigger a bug so I can find the problem.

musafarouk commented 6 years ago

Check the link I sent. Notice how the animation and delay doesn't show when trying to visit the pages again