storeon/router

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 → *

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