ElMassimo / iles

🏝 The joyful site generator
https://iles.pages.dev
MIT License
1.08k stars 31 forks source link

feat: add `turbo` setting to enable navigation without full-page reloads #59

Closed ElMassimo closed 2 years ago

ElMassimo commented 2 years ago

Description 📖

This pull request adds a new turbo setting which enables SPA-like navigation for îles pages.

It combines techniques from quicklink and @hotwired/turbo, but taking advantage of the architecture of an îles site to achieve it in under 2kb.

Future Work 🔮

It's possible to avoid unmounting islands that don't change from one page navigation to the other, making them automatically "permanent" (in the @hotwired/turbo terminology) without any intervention from the user.

That would allow persistent components typically found in SPAs like shopping carts to work seamlessly.

netlify[bot] commented 2 years ago

✔️ Deploy Preview for the-vue-point-with-iles canceled.

🔨 Explore the source changes: 2c02dd50055f5c0e2545849ca24d739a56273d06

🔍 Inspect the deploy log: https://app.netlify.com/sites/the-vue-point-with-iles/deploys/61bb4c01b5a66200077d99ad

netlify[bot] commented 2 years ago

✔️ Deploy Preview for iles-docs canceled.

🔨 Explore the source changes: 2c02dd50055f5c0e2545849ca24d739a56273d06

🔍 Inspect the deploy log: https://app.netlify.com/sites/iles-docs/deploys/61bb4c01adb3390008a74a0e

cloudflare-pages[bot] commented 2 years ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2c02dd5
Status:⚡️  Build in progress...

View logs