As there is already a FlowRouter.current().queryParams, it could be handy to have such a method FlowRouter.getQueryParams(), we already have FlowRouter.getQueryParam(name) so it make sense to have the method that returns all query params.
It could be also a great idea in term of evolution if someday you decide to rename FlowRouter.current(), it won't break calls.
As there is already a
FlowRouter.current().queryParams
, it could be handy to have such a methodFlowRouter.getQueryParams()
, we already haveFlowRouter.getQueryParam(name)
so it make sense to have the method that returns all query params.It could be also a great idea in term of evolution if someday you decide to rename
FlowRouter.current()
, it won't break calls.