use-query-params
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -44,3 +44,5 @@ import * as React from 'react'; | ||
var decodedValue = void 0; | ||
if (hasNewEncodedValue || encodedValuesCache[paramName] === undefined) { | ||
if (hasNewEncodedValue || | ||
(encodedValuesCache[paramName] === undefined && | ||
decodedValuesCache[paramName] === undefined)) { | ||
encodedValue = parsedQuery[paramName]; | ||
@@ -47,0 +49,0 @@ decodedValue = paramConfig.decode(encodedValue); |
@@ -46,3 +46,5 @@ "use strict"; | ||
var decodedValue = void 0; | ||
if (hasNewEncodedValue || encodedValuesCache[paramName] === undefined) { | ||
if (hasNewEncodedValue || | ||
(encodedValuesCache[paramName] === undefined && | ||
decodedValuesCache[paramName] === undefined)) { | ||
encodedValue = parsedQuery[paramName]; | ||
@@ -49,0 +51,0 @@ decodedValue = paramConfig.decode(encodedValue); |
{ | ||
"name": "use-query-params", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "React Hook for managing state in URL query parameters with easy serialization.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96107
1638