Comments (9)
hello, @manniL ! Can I solve this problem?
from nuxt.js.
@uniqueeest Sure, go ahead
from nuxt.js.
@manniL Should I stop the move from nuxtlink to # altogether?
from nuxt.js.
@uniqueeest no no, the main part is not triggering the loading indicator if only the hash is different
from nuxt.js.
@manniL sorry. I'm a beginner, so I don't know where to fix it π’
from nuxt.js.
@uniqueeest Take a look at this PR as a starting point. Changing the logic there to "ignore" differences between the fragment should be fine
from nuxt.js.
Actually, the reproduction is not using the NuxtLoadingIndicator nor useLoadingIndicator
. Using it should work fine as the diffing is done there.
from nuxt.js.
Re-opening as the "actual issue" is valid though (+renamed the title)
from nuxt.js.
The issue is here that vue router regards this as a 'navigation' event, so it will trigger middleware - and it is even possible to force reloading the page in this case (with a custom page-key
passed to <NuxtPage>
).
We start the loading when middleware begins, because if middleware perform data fetching this should be shown as part of the page loading.
As long as these two things are the case, I think it is correct that this triggers a loading event. Because you are creating a custom integration with the page:loading:start
hook, it might be more appropriate to handle this edge case yourself. (Perhaps we could pass an argument to the hook to allow you to do this more easily?)
from nuxt.js.
Related Issues (20)
- _How to run "useLazyAsyncData" on client-side only?_ Use the "clientSide" option. For example: Nuxt.useLazyAsyncData(objects, { clientSide: true }); HOT 2
- iOS white screen while swiping back after scrolling HOT 1
- Add example to NuxtLink documentation for passing params to dynamic routes
- Vite Pre-transform error: on Nuxt 3.11 with images in public directory with query param HOT 1
- Nuxt module dynamic imports not working in build mode HOT 1
- Show compatibility flag when starting the server
- routeRules /** swr crashed ipx provider HOT 2
- Warning will appear when passing an external link to `<NuxtLink>` HOT 3
- In original code is using "renderToString", I want to use "renderToNodeSteam", what should I do? HOT 1
- asyncContext on development is dead in nightly build HOT 1
- Nuxt 3 - build ends with SIGKILL HOT 2
- Page scrolls to top after reloading page and then restores the scroll position" HOT 1
- routeRules doesn't work HOT 12
- Add ability to configure HMR port
- FOUC in Production since Nuxt 3.10.0
- navigateTo not working inside defineNuxtPlugin on initial render HOT 2
- Page navigation shows warning - Component is already mounted, please use $fetch instead
- "How to Set Server Cookie in Nuxt 2, Multiple Users Requesting at the Same Time is a Confusion Problem" HOT 2
- createError from server middleware does not use /error.vue HOT 3
- Zod Async Refine always returning false HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt.js.