Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 842 Bytes

File metadata and controls

24 lines (18 loc) · 842 Bytes

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
});

Further reading