This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-29
Channels
- # announcements (5)
- # beginners (25)
- # calva (53)
- # clj-kondo (9)
- # clojure (25)
- # clojure-europe (14)
- # clojure-nl (1)
- # clojure-norway (21)
- # clojure-uk (1)
- # conjure (2)
- # data-science (1)
- # datalevin (4)
- # datascript (6)
- # deps-new (5)
- # emacs (5)
- # etaoin (6)
- # figwheel-main (1)
- # fulcro (46)
- # gratitude (3)
- # hyperfiddle (8)
- # introduce-yourself (13)
- # lsp (13)
- # nextjournal (5)
- # off-topic (2)
- # pathom (4)
- # polylith (11)
- # re-frame (16)
- # releases (4)
- # scittle (67)
- # shadow-cljs (38)
- # slack-help (4)
- # specter (13)
- # sql (29)
- # squint (21)
- # test-check (3)
- # vim (13)
- # xtdb (15)
I’m thinking about adding different pages to my webapp, to be more like a website (true server side page navigations), back buttons work etc, I’m thinking of finding the jetty router and start hacking until I have a couple of pages that all render photon apps Is this the correct mental model for implementing new pages?
We will provide in ~October an optional hybrid HTML5/http router with both server page entry point and fast local nav. Hyperfiddle-2020 has this already, it needs to be ported and modernized
For now you can do what you want but I'd recommend starting as a SPA with HTML5 pushstate api, and then we can layer in the server http support later. So that means your route is an atom on the client which is synchronized with the browser history, and photon can watch the atom and dispatch on route from there
We may accelerate router work actually as everyone needs it- I will talk to the team
Ok, html5 router is at least a month out for us. Would you like to contribute a simple one?
How did the original router work? :thinking_face:
We used a forked pushy on the client side, it needed to be rewritten, hopefully there is better foss spa router (edit: HTM5 integration really) available for cljs now
we used that to synchronize the browser document.location to an atom