hyperfiddle

braai engineer 2025-02-05T20:05:49.852899Z

Is there any router available for v3, even if alpha?

Dustin Getz (Hyperfiddle) 2025-02-05T20:14:29.111429Z

hyperfiddle.router4 is available in com.hyperfiddle/hyperfiddle {:mvn/version "v0-alpha-SNAPSHOT"} , it works in v3 and has had some stability upgrades but it is super undocumented and not exactly easy to use

🙏 2
Dustin Getz (Hyperfiddle) 2025-02-05T20:14:50.267509Z

it needs some DX/"frontend" work

Dustin Getz (Hyperfiddle) 2025-02-05T20:15:53.452289Z

Here is the best example, though it uses router3, i think you can just change 3 to 4

Dustin Getz (Hyperfiddle) 2025-02-05T20:17:12.709339Z

Here is a much simpler goog history router from electric v2, you can upgrade it to v3, if you have some experience with v3 it should be straightforward

Piotr Roterski 2025-02-11T07:05:37.365609Z

I can confirm, using reitit router with electric is as simple as:

Piotr Roterski 2025-02-11T07:06:02.331659Z

🙏 1
1
alex 2025-02-06T23:17:47.561239Z

or you can try simply using reitit. It works just fine for me. Just listen to route changes atom data via e/watch and that's it:) https://cljdoc.org/d/metosin/reitit/0.8.0-alpha1/api/reitit.frontend.easy

🙏 2