Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different tab infinite loading issue #124 #127

Open
Ischafak opened this issue Nov 20, 2024 · 3 comments
Open

Different tab infinite loading issue #124 #127

Ischafak opened this issue Nov 20, 2024 · 3 comments

Comments

@Ischafak
Copy link

Ischafak commented Nov 20, 2024

I'm submitting a ... (check one with "x")

[ ] Bug report => search github for a similar issue or PR before submitting
[ ] Feature request
[ ] Other, please describe

Tell about your platform

  • Nuxt.js version : 3.10.2
  • Browser name and version : Chrome
  • This package version : 6.0.6

Current behavior
There is a weird bug i encounter.
normally when the site loads i make loading active;

<Loading
      :active="isLoading"
      :is-full-page="true"
      background-color="#b1b3b1"
      :enforce-focus="true"
      class="main-overlay"
    >
      <div>
        <Lottie />
      </div>
    </Loading>

import { mapStores } from 'pinia'
computed: {
isLoading () {
      if (this.loadingStore) {
        console.log(this.loadingStore?.$state?.isAppLoading)
        console.log(this.loadingStore?.$state?.isLoading)
        return this.loadingStore?.$state?.isAppLoading || this.loadingStore?.$state?.isLoading
      }
      return false
    },
...mapStores(useLoadingStore, useStore, useSharedStore),
}

something like this normally when i am on the websites chrome tab when loading finishes there is no error(loading finishes etc). But if i am on a different tab or screen loading goes infinite even the isLoading data false.

what can i do

Expected behavior
The loading must be stoped when i am on a different page when endpoint returns

@ankurk91
Copy link
Owner

It is not possible for me to reproduce this issue.

@Ischafak
Copy link
Author

ok i can try to create something for you

@licam
Copy link

licam commented Nov 24, 2024

This issue is reproducible for us as well. There's no clear step by step on how the reproduce but it happens from time to time unexpectedly. We are using the latest version 6.0.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants