Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I like HTMX. But I got stuck with the fact that there is no url routing or history. After using things like React and Angluar, I am used to having well defined urls that can get me where I want. Perhaps there is some recommended way to add some other library ontop of htmx, but maybe I'm the only one looking for this?


History? As in, pushing the URL into the browser history when, e.g., navigating a paginated table? HTMX can do that with no issues.


Interesting, thanks. I stand corrected on the history part. But routing is still left to the user (its even explicitly mentioned in the doc you linked to.

For example if a user clicks a link in their email to /movies/2001, it does not know to show the movies frame with the 2001 content. We have to implement some kind of url parsing to determine what divs need updating and then update those on first page load.


Maybe this is what you are looking for?

https://htmx.org/docs/#history




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: