Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

use-query-params

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-query-params - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

4

esm/useQueryParams.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc