This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-15
Channels
- # adventofcode (2)
- # announcements (11)
- # babashka (48)
- # beginners (332)
- # calva (73)
- # cider (2)
- # clj-kondo (11)
- # cljfx (15)
- # clojure (23)
- # clojure-austin (1)
- # clojure-europe (42)
- # clojure-france (3)
- # clojure-nl (5)
- # clojure-taiwan (1)
- # clojure-uk (44)
- # clojurescript (25)
- # conjure (30)
- # cursive (3)
- # data-science (1)
- # fulcro (12)
- # jobs (3)
- # kaocha (1)
- # malli (2)
- # off-topic (49)
- # pathom (21)
- # pedestal (13)
- # re-frame (3)
- # reitit (1)
- # remote-jobs (1)
- # shadow-cljs (3)
- # sql (11)
- # startup-in-a-month (4)
- # tools-deps (113)
- # xtdb (16)
- # yada (6)
Hi there. I'm having some problem with routing which I'm not sure what's going on. So I have a simple Root -> [Login Main]
setup that when I hit localhost:8000
it will bring me to the Login page. However the URL stays the same, and going to localhost:8000/login
returns Not found. Missing index.html.
. Would appreciate any ideas of why something like this might happen. Thanks 🙂
Dynamic routing has nothing to do with urls, though you can connect the two. Look at the RAD demo and how it uses its history api wrapper, start from client.cljs
For the other error - again look how RAD demo routes every path to its index page. What is your app based on? How do you run the server?
You mean shadow-cljs dev server? Then you need to look at how it does routing. This suggests you are basing your code neither on fulcro-template nor fulcro-rad-demo, correct?
Yes I was using the default Person example from the book and started building on top of it.
I'd recommend starting with fulcro-template as it is already wired correctly
So I was thinking about using those two but I need to get my hands dirty so I can understand Fulcro a bit more.
Then get them dirty by studying the template :) Also check out the advice in https://docs.google.com/document/d/1XMWwwnxtukZ0o3ev4GH2Kpa8MvX4z-r4kYKJMaMBw2A/edit?usp=sharing
You need a good deal of plumbing that's easy to get wrong.