Closed KariMuhammad closed 1 week ago
That would fit in a server side project (Koa, Next, Expres...etc), but with a CSR, there is no such complications like that, each middleware receives the route params (see middleware documentation), you can a state management to scope values for certain routes.
New Feature
Question
Why not make middleware in the same array access all the variables we wanted and returned from previous middlewares?
Desire
because
return
makes the brain think in stop execution, and that causes a lot of confusion in reading code.