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
{{ message }}
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.
The only problem was that require('../routes/Index') is not the handler but something else (exports). Can handler take a function and return require('../routes/Index')?
Right now it doesn't seem like this would be possible. I think if we added yahoo/fluxible#15, you would be able to have a store handle NAVIGATE_START and execute currentRoute.handler().getUser(). Otherwise we would need to bake the concept of handlers in to the navigateAction in a very prescriptive way.
I was thinking about
ui-router
and it's powerful resolve feature. Curious if there is a good way to do it here.The only problem was that
require('../routes/Index')
is not the handler but something else (exports). Can handler take a function and returnrequire('../routes/Index')
?For example, index would have statics:
Then in routes:
I haven't figured out the best way yet though :(
The text was updated successfully, but these errors were encountered: