Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(changes: Partial>, updateType?: UrlUpdateType) => {
// encode as strings for the URL
const encodedChanges: EncodedQueryWithNulls = encodeQueryParams(
paramConfigMap,
changes
);
// update the URL
updateUrlQuery(
encodedChanges,
refHistory.current.location || refLocation.current, // see #46
refHistory.current,
updateType
);
},
[paramConfigMap]