Refactor the setUrlParams function

What does this MR do and why?

refactor setUrlParams function for better readability and usability

References

#578624 (closed)

Screenshots or screen recordings

Before After
export const setUrlParams = (
  params,
  url = window.location.href,
  clearParams = false,
  railsArraySyntax = false,
  decodeParams = false,
  // eslint-disable-next-line max-params
) => {
export const setUrlParams = (
  params = {},
  {
    url = window.location.href,
    clearParams = false,
    railsArraySyntax = false,
    decodeParams = false,
  } = {}
) => {

How to set up and validate locally

Edited by Rinku C

Merge request reports

Loading