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
Thanks 🙂
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?
Just normal shadow-cljs
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
Will do thanks 👍
You need a good deal of plumbing that's easy to get wrong.