4 ms·
Are you using Live View for everything related to navigation too? For example if you transition between any page, is this happening through Live View? In any c
by nickjj 5y ago
Are you using Live View for everything related to navigation too? For example if you transition between any page, is this happening through Live View?
In any case, I'd love to chat with you on my podcast on how you built and deploy Glimesh if you're interested. It's at https://runninginproduction.com/ https://runninginproduction.com/, there's a become a guest button in the nav bar on the top right if you wanted to schedule a call to be on the show.
- deleted 5y ago[deleted]
- cgarvis 5y agoSlight difference from stock phoenix but yes. Only area I’m not 100% on is auth. https://hexdocs.pm/phoenix_live_view/live-navigation.html https://hexdocs.pm/phoenix_live_view/live-navigation.html
- clone1018 5y agoRight, the normal way for Phoenix LiveView apps is to make the registration / login exist inside your regular controllers / actions since a LiveView cannot directly modify your cookies or global session (with some caveats).
- clone1018 5y agoYeah, the channel / category pages are all "live patched" generally, which means the user can navigate around without incurring a full HTTP roundtrip. Some pages like the account settings are "dumb views" though and do not offer the same advantages. Thanks for the offer to be on the podcast, I'll check it out!
- danjac 5y agoI've used a similar technique with HTMX[1]. General navigation just patches the main "content" section, but actions where it's necessary to replace the entire page (e.g. login/logout) just do a full page "dumb" refresh. [1] https://htmx.org https://htmx.org
- fulafel 5y agoThere's also a Clojure web setup based on htmx: https://whamtet.github.io/ctmx/ https://whamtet.github.io/ctmx/
- MathCodeLove 5y agoNick! Completely unrelated to this discussion but I just wanted to say I've bought a few of your courses and love you're work. What a pleasant surprise to run into you on HN.
- nickjj 5y agoHi! Thanks a lot, I really appreciate it.