Replies: 1 comment
-
|
I'm not sure that I understand what you are saying. But, as I am coming out of the AngularJS world, one thing that I am trying to translate in my head is how to use the URL to drive Modal / Fly-outs while still also being able to refresh the page to return to the same state. One thought that I has was to use the All to say, there doesn't seem to be a super obvious way to have a multi-layer app that also handles page-refresh and history. I'm still trying to work it out in my head. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
HTMXis a fantastic idea, and the essays page is a class apart.I highly recommend reading all the articles.
However, I believe that the entire page should be shared via
link, making it possible to reconstruct thestatethrough yourlink.This means that every page transformation using the server must add parameters to the
URL query.And in the case of transformations in the frontend, you must use the
URL hashto save thestateof the app.In this case I believe that a
hash routerthat reacts to hash changes is the correct way to add dynamic javascript to the page while being able to sharelinkswith thestate.This is why
HTMXwas never an option for me.I would like to know your opinion and please correct me if there is a way to use
HTMXin this approach or if someone has done something similar.Beta Was this translation helpful? Give feedback.
All reactions