Fork me on GitHub
#reitit
<
2018-11-09
>
hkjels12:11:53

Are there any examples of using middleware on the front-end

ikitommi13:11:11

@hkjels don't think so. We (at Metosin) are mostly using controllers in the frontend. Middleware & Interceptors are great for stateless apps, Controllers for stateful.

hkjels13:11:28

I see.. This is just a prototype, so I’ll just slap something on there then

ikitommi13:11:38

.. but the frontend router could have a config option to use either reitit.middleware/router or reitit.interceptor/router behind the scenes

hkjels13:11:27

hmm.. I could actually do what I’m trying to with this. Thank you

ikitommi13:11:18

[metosin/reitit "0.2.6"] is out! Supports latest ClojureScript, spec-tools, schema-tools & sieppari => interceptors should work now on ClojureScript too (core.async & promesa (1.10.0-SNAPSHOT)) Big thanks to all contributors!

👍 4
🎉 4
💯 4