This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-11
Channels
- # announcements (3)
- # babashka (6)
- # babashka-sci-dev (37)
- # beginners (39)
- # calva (1)
- # clj-kondo (55)
- # clj-on-windows (1)
- # cljdoc (1)
- # clojure (30)
- # clojure-dev (3)
- # clojure-europe (8)
- # clojure-losangeles (1)
- # clojure-morsels (1)
- # clojurescript (26)
- # conjure (8)
- # graalvm (5)
- # helix (6)
- # hyperfiddle (12)
- # meander (6)
- # minecraft (1)
- # pathom (17)
- # polylith (1)
- # releases (2)
- # shadow-cljs (2)
- # sql (1)
- # squint (4)
Hi, I need a pointer on how to use reitit and helix. What is the equivalent of this https://github.com/metosin/reitit/blob/master/examples/frontend/src/frontend/core.cljs example with helix?
you can store the match
state either in a local component state at the top of your app and pass it down, or in an atom and use a hook to reference it's state with useSyncExternalStore
there's not a super easy way to access global state like this with helix out of the box
I would highly encourage you to use something like react-router anyways, since it's going to give a much better developer and user experience
Thank you, I think I will follow your recommendation and just learn to use react-router.
@U03PB0E914Y did you end up getting react router integration working? I was trying to use react router v6 and it's quite annoying. I am moving to the approach in this example: https://github.com/rafaeldelboni/helix-refx-reitit-example