Hi all,
A bit confused with idea of computeMatch method in Router.
On every history change this method is called but write same (but isExact property) data.
computeMatch(pathname) {
return {
path: '/',
url: '/',
params: {},
isExact: pathname === '/'
}
}
Whats the idea of using this? Should it write in store hash from current location?
This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux. Thanks!
Each location aware component may want to know what it's parent match is. We set a default match object in <Router> so that location aware components that are not rendered inside of a <Route> have default values to reference.