inertiajs / inertia

Inertia.js lets you quickly build modern single-page React, Vue and Svelte apps using classic server-side routing and controllers.
https://inertiajs.com
MIT License
6.02k stars 405 forks source link

Please update docs #1893

Closed ignacio-dev closed 3 weeks ago

ignacio-dev commented 3 weeks ago

I spent days trying to fix an issue related to infinite scroll, only to eventually find out that you can pass { preserveUrl: true } when using Inertia's router.

There is no mention of this option on your website.

Could you please add it to your docs? It would saved me a few days of googling around!!

RobertBoes commented 3 weeks ago

Inertia doesn't have a preserveUrl option

ignacio-dev commented 3 weeks ago

It does now, and I'm using it on my project without issues.

See #1009

RobertBoes commented 3 weeks ago

It doesn't, if you look at the files being changed in that PR; it's empty. That PR was closed, but since there are no changes I guess GitHub shows it as merged.

reinink commented 3 weeks ago

Yup exactly — it's something that's been asked about a number of times, mostly because of challenges when doing infinite scrolling, but not something we've actually solved yet in Inertia.js. Maybe in the future though! 💪

Given that I'm going to close this issue.

ignacio-dev commented 3 weeks ago

My bad then

reinink commented 3 weeks ago

My bad then

ALL GOOD! 🤙