Giter Club home page Giter Club logo

Comments (3)

imacrayon avatar imacrayon commented on June 6, 2024 1

Yeah right now Alpine AJAX doesn't cover this use case. It's definitely something I'm interested in, but I'm waiting to see how things shake out over on the Alpine.js repo. The reason being that wire:navigate and the query string history stuff in Livewire are already powered by an Alpine plugin under the hood, and I think Caleb intends to make both of those plugins official first-party plugins eventually. If that ends up being the case I don't want to build an Alpine AJAX API that could be incompatible with the first-party plugins.

If you're wanting to implement SPA-like navigation right now with Alpine AJAX, Classic Turbolinks still works well, or I like to drop https://instant.page/ into my projects; I think preloaded links go a long way in making apps feel fast without having to mess with the history push state stuff.

from alpine-ajax.

adamkiss avatar adamkiss commented on June 6, 2024

I just realised that in #19 you cover the filtering use case (manage history yourself), so that part's answered. Is it the same for links enhanced with x-target?

from alpine-ajax.

adamkiss avatar adamkiss commented on June 6, 2024

Yeah right now Alpine AJAX doesn't cover this use case. It's definitely something I'm interested in, but I'm waiting to see how things shake out over on the Alpine.js repo. The reason being that wire:navigate and the query string history stuff in Livewire are already powered by an Alpine plugin under the hood, and I think Caleb intends to make both of those plugins official first-party plugins eventually. If that ends up being the case I don't want to build an Alpine AJAX API that could be incompatible with the first-party plugins.

Fair enough, that makes sense

If you're wanting to implement SPA-like navigation right now with Alpine AJAX, Classic Turbolinks still works well, or I like to drop https://instant.page/ into my projects; I think preloaded links go a long way in making apps feel fast without having to mess with the history push state stuff.

I'd just use htmx if that was the case, but I thought - I already have a thing doing ajax/merge thing (alpine-ajax) installed, I might as well speedup the browsing, you know

from alpine-ajax.

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.