File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export function resolveQuery (
3838 return parsedQuery
3939}
4040
41- const castQueryParamValue = value => ( value == null ? value : '' + value )
41+ const castQueryParamValue = value => ( value == null ? value : String ( value ) )
4242
4343function parseQuery ( query : string ) : Dictionary < string > {
4444 const res = { }
Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ function isObjectEqual (a = {}, b = {}): boolean {
104104 return aKeys . every ( key => {
105105 const aVal = a [ key ]
106106 const bVal = b [ key ]
107+ // query values can be null and undefined
108+ if ( aVal == null || bVal == null ) return aVal === bVal
107109 // check nested equality
108110 if ( typeof aVal === 'object' && typeof bVal === 'object' ) {
109111 return isObjectEqual ( aVal , bVal )
You can’t perform that action at this time.
0 commit comments