Coder Social home page Coder Social logo

Comments (5)

12gsdi avatar 12gsdi commented on July 2, 2024

If someone is searching for a svelte router it's because they don't want to use Sveltekit....which reloads the page????? So confused

from svelte-pathfinder.

PaulMaly avatar PaulMaly commented on July 2, 2024

Hi! Maybe I completely misunderstand your issue, but this router don’t reload pages, because uses History API under the hood. Of course, if you use it as expected. Actually, pathfinder completely unopinionated how exactly you’ll use it in your application and provides only very low-level but in the same time very powerful instruments to manipulating with routing state. That’s why, to help you with your problems I need to have an example of how you exact use it. Let’s try to find out why it not working as you expected together.

Btw. SvelteKit doesn’t reload the pages as well. It uses universal (isomorphic) approaches to build the apps, combining both - server and client - sides to provide better performance and UX.

from svelte-pathfinder.

PaulMaly avatar PaulMaly commented on July 2, 2024

First of all, please make sure that you’re handle clicks on all your navigation links and preventDefault its behavior. Alternatively, you can use click helper from pathfinder on window object to handle click of all regular <a> tags in your app:

<svelte:window on:click={click} />

from svelte-pathfinder.

PaulMaly avatar PaulMaly commented on July 2, 2024

@12gsdi Are you solved your issue? Any additional questions?

from svelte-pathfinder.

PaulMaly avatar PaulMaly commented on July 2, 2024

Closed for now because of inactivity. Feel free to reopen any time you needed.

from svelte-pathfinder.

Related Issues (14)

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.