Simplify router callbacks
ai opened this issue · 2 comments
ai commented
We do not need to keep state, event
convention in routes. Let’s replace to:
['/complex/*/with-params/*', (one, two) => …], // one → *, two → *
gosolivs commented
I'm agreed. I made a mistake in the documentation. Now done so:
['/complex/*/with-params/*', (params) => …], // params[0]→ *, params[1] → *
Is your structure more useful?
ai commented
Yeap