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

<NuxtLoadingIndicator /> seems doesn't work on nuxt >= 3.1.0 #32

Closed
gifaldyazkaa opened this issue Feb 18, 2023 · 3 comments · Fixed by #38
Closed

<NuxtLoadingIndicator /> seems doesn't work on nuxt >= 3.1.0 #32

gifaldyazkaa opened this issue Feb 18, 2023 · 3 comments · Fixed by #38
Labels
bug Something isn't working

Comments

@gifaldyazkaa
Copy link
Member

🤔 The Problem

This seems to be a bug with the framework itself. I didn't know what's happening on the framework's repo & what's the problem but when I am trying with Nuxt v3.0.0, it works. The <NuxtLoadingIndicator /> component seems to be visible on routing event.

But when I am upgrading the Nuxt version to 3.1.0 | 3.2.0 | 3.2.2 (Current), this component is not visible and does not showing on routing event.

I wonder why this happens. Maybe there's a breaking changes or this is a bug that currently happening on the framework.
Well, if anyone can help something, It will be very appreciated!

🖥️ Environments

👨🏻‍💻 Local device

OS: Linux Ubuntu 22.10
WM: sway
Node: v18.14.1
pnpm: v7.27.1
Editor: Visual Studio Code - Insiders

☁️ Vercel deployments

OS: Linux ???
WM: - (headless)
Node: v18.x
pnpm: v7.x
Editor: - (none)

@gifaldyazkaa gifaldyazkaa added the bug Something isn't working label Feb 18, 2023
@gifaldyazkaa
Copy link
Member Author

Finally, I found some helpful solution on the nuxt repository itself. I will start to implement the fix to this project.

@gifaldyazkaa
Copy link
Member Author

This seems to be worked back! The solution is setting throttle to 0 will trigger the loading indicator on routing event without seeing page load time.

Before the fix, the code was like:

<NuxtLoadingIndicator color="#6E5050" />

and adding :throttle="0" attribute fixed this issue

<NuxtLoadingIndicator color="#6E5050" :throttle="0" />

and I will change the loading color from #6E5050 to #FF6C9B and setting the loading height to 3

Thanks to these PR & Issues! I have fixed this issue because these discussions
PR: nuxt/framework#9832
Issue: nuxt/nuxt#18630

gifaldyazkaa added a commit that referenced this issue Mar 15, 2023
This feature is now works again!

Closes: #32
gifaldyazkaa added a commit that referenced this issue Mar 15, 2023
This feature is now works again!

Closes: #32
@gifaldyazkaa
Copy link
Member Author

closed with peace ✌🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant