Closed TedAvery closed 8 years ago
Hi @TedAvery,
I was doing the same as you but try passing in the context param instead:
FlowRouter.triggers.enter([function(context) {
DocHead.setTitle(context.route.name);
}]);
I believe that should work.
@tomwasd @TedAvery That's the correct way. You are inside a trigger and it's not the current route yet.
Reopen if this doesn't solves.
Prior to 3.8.0 I was doing this to set my page titles, and it worked fine:
But now when
triggersEnter
is fired,FlowRouter.current()
on first load is an object with undefinedqueryParams
andparams
attributes, and when fired again later, it is always set to the info of the route we just left.