Is it possible to run triggers asynchronously?
For exampls :
FlowRouter.route('/home', {
// calls just before the action
triggersEnter: [checkPermissions],
action: function() {
// do something you like
}
});
function checkPermissions(context, redirect, stop) {
return http.get('/path/to/service', params).catch(e => {
stop();
});
}
Where the action does not get executed unto the Promise is resolved?
Is it possible to run triggers asynchronously?
For exampls :
Where the action does not get executed unto the
Promiseis resolved?