Closed intervalia closed 7 months ago
Included in the next release. This will pass the following:
{
pathname: window.location.pathname,
search: window.location.search,
query: parseQueryParams(window.location.search),
hash: windows.location.hash.slice(1)
}
parseQueryParams converts the query string into an object.
Is your feature request related to a problem? Please describe. Currently, any callback for
router.onUpdate
is not passed any parameters.Describe the solution you'd like To help reduce the code that a developer needs to write we need to pass either
window.location
orwindow.location.pathname
to the callback.