router.replace({ pathname: path, query: query, params: params })
How can I replace this statement in RRDV6 and how can I pass params and query through navigate
?
router.navigate(
{
pathname: path,
search: createSearchParams(query).toString(),
},
{
replace: true,
state: params
}
)
Will this work or not?