You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. The interceptors are first compiled on reitit.http/router creation and second on reitit.http/ring-handler, which effectively doubles the compile times. This is needed as the ring-handler adds new route data &/ router options like the top-level interceptors and info about the executor - the interceptors COULD use this added data at compile-time to compile differently.
I think this is inconvenient, but does not effect runtime performance and should not matter a lot when creating a router.
If you think differently, please reopen and let's see if/how this could be changed.
I added a println to my interceptor's
:compile
function and it prints 4 times when I expected it to print 2 times.Example code:
The output when loading this namespace is:
From the compile routes, it looks like there are only the two routes: one
:get
that I defined and one generated:options
.The text was updated successfully, but these errors were encountered: