This PR updates the signatures to Router.go, Router.path, and Router.url to allow passing null as the params argument. This makes code more clear when you want to call Router.go without any parameters, yet need to pass the qs argument.
Router.go('someRoute', null, { q: 'a+query' });
Previously you would need to pass undefined as the second argument.
Resolves #104
This PR updates the signatures to
Router.go
,Router.path
, andRouter.url
to allow passingnull
as theparams
argument. This makes code more clear when you want to callRouter.go
without any parameters, yet need to pass theqs
argument.Previously you would need to pass
undefined
as the second argument.