watchPathChange.md
April 22, 2026 ยท View on GitHub
watchPathChange method
FlowRouter.watchPathChange();
- Returns {void}
Reactively watch the changes in the path. If you need to simply get the params or queryParams use methods like FlowRouter.getQueryParam().
Tracker.autorun(() => {
FlowRouter.watchPathChange();
const currentContext = FlowRouter.current();
// do something with the current context
});