Closed charypar closed 9 years ago
Fixed a while ago.
page
now takes 3 arguments to define a route. The route string, the route component it maps to and a pre-render function which gives you the state cursor, the route context with the url and any vars/query params and a callback you can call to tell the application you're done preloading/preprocessing whatever you needed.
page '/', home, (state, context, callback) -> callback!
It would be useful to have the ability to pass in anonymous/default props which would be merged into the props we already pass.
Originally requested by @tabazevedo