Fork me on GitHub
#reitit
<
2019-06-18
>
abdullahibra11:06:36

currently i'm using bidi for my client routing, but i can't fix prefix "#" before the routes to fix the refreshing page issue on my app, if i set the prefix in bidi routes and use on-click dispatch event to set-url and navigate the page but i can't use browser back button with this fix

abdullahibra11:06:01

how reitit fix this?

abdullahibra11:06:31

are you guys could use prefix "#" with yours routes and refreshing the pages and back button within your apps ?

abdullahibra11:06:14

i'm going to switch to reitit but i need more information about it, is it faster than bidi or the same ?

ikitommi15:06:18

@abdullahibra there is also a history router for the frontend, which might work better for you. Here's something about perf: https://cljdoc.org/d/metosin/reitit/0.3.9/doc/misc/performance

ikitommi15:06:32

the pure clojure (e.g. cljs) version is roughly 4x slower than the Java version.

abdullahibra17:06:47

@ikitommi amazing, thanks 🙂