arillo/meteor-flow-router-helpers

currentRouteOption relies on non-reactive FlowRouter.current()

Opened this issue · 1 comments

The template helper {{currentRouteOption '<option_name>'}} uses the non-reactive FlowRouter.current() API call.

The documentation makes this explicit. It also provides a way to explicitly trigger reactivity to a helper function.

Use FlowRouter.watchPathChange() to have the the helper function triggered every time a route path changes.

It's one line of code after line 40 in helpers.coffe. Simple insert FlowRouter.watchPathChange();