Giter Site home page Giter Site logo

Comments (9)

uniqueeest avatar uniqueeest commented on May 25, 2024

hello, @manniL ! Can I solve this problem?

from nuxt.js.

manniL avatar manniL commented on May 25, 2024

@uniqueeest Sure, go ahead ☺️

from nuxt.js.

uniqueeest avatar uniqueeest commented on May 25, 2024

@manniL Should I stop the move from nuxtlink to # altogether?

from nuxt.js.

manniL avatar manniL commented on May 25, 2024

@uniqueeest no no, the main part is not triggering the loading indicator if only the hash is different

from nuxt.js.

uniqueeest avatar uniqueeest commented on May 25, 2024

@manniL sorry. I'm a beginner, so I don't know where to fix it 😒

from nuxt.js.

manniL avatar manniL commented on May 25, 2024

@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.

manniL avatar manniL commented on May 25, 2024

Actually, the reproduction is not using the NuxtLoadingIndicator nor useLoadingIndicator. Using it should work fine as the diffing is done there.

from nuxt.js.

manniL avatar manniL commented on May 25, 2024

Re-opening as the "actual issue" is valid though (+renamed the title)

from nuxt.js.

danielroe avatar danielroe commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.