New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@spark-ui/use-combined-state

Package Overview
Dependencies
Maintainers
7
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spark-ui/use-combined-state - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.6.1](https://github.com/adevinta/spark/compare/@spark-ui/use-combined-state@0.6.0...@spark-ui/use-combined-state@0.6.1) (2023-09-29)
### Bug Fixes
- doc ([5506203](https://github.com/adevinta/spark/commit/55062039dc67c3532be42a4661540052094163d9))
- **use-combined-state:** doc ([9ea6c28](https://github.com/adevinta/spark/commit/9ea6c2820c4578daafb394c8242207b5465129a8))
- **use-combined-state:** missed var observed in hook ([b3fc647](https://github.com/adevinta/spark/commit/b3fc647c5ff679d00f0ce71bd5d4d73fbfc1a2dd))
# [0.6.0](https://github.com/adevinta/spark/compare/@spark-ui/use-combined-state@0.5.6...@spark-ui/use-combined-state@0.6.0) (2023-09-28)

@@ -8,0 +16,0 @@

2

dist/index.js

@@ -1,1 +0,1 @@

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("lodash.isequal"),c=require("react");exports.useCombinedState=function(r,i,o){const e=r!==void 0,{current:s}=c.useRef(e?r:i),[a,l]=c.useState(i),n=e?r:a,f=c.useCallback((u,b=(t,d)=>!S(t,d))=>{const t=typeof u!="function"?u:u(n);b(n,t)&&!e&&l(t),o&&o(t)},[e,n]);return[n,f,e,s]};
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("lodash.isequal"),i=require("react");exports.useCombinedState=function(r,o,u){const e=r!==void 0,{current:s}=i.useRef(e?r:o),[a,l]=i.useState(o),n=e?r:a,f=i.useCallback((c,b=(t,d)=>!S(t,d))=>{const t=typeof c!="function"?c:c(n);b(n,t)&&!e&&l(t),u&&u(t)},[e,n,u]);return[n,f,e,s]};
{
"name": "@spark-ui/use-combined-state",
"version": "0.6.0",
"version": "0.6.1",
"description": "combine controlled-uncontrolled component state by stateful-stateless inner state management",

@@ -43,3 +43,3 @@ "publishConfig": {

"license": "MIT",
"gitHead": "60a8f00aef92177084ac744bc4fd56ef13bc9948"
"gitHead": "de227a8b264be41733e8889fb99f7fa0404efd53"
}
# useCombinedState
> @spark-ui/use-combined-state
![storybook](https://img.shields.io/badge/storybook-black?logo=storybook&link=https%3A%2F%2Fsparkui.vercel.app%2F%3Fpath%3D%2Fdocs%2Fhooks-usecombinedstate--docs)
![documentation](https://img.shields.io/badge/documentation-black?logo=googledocs&link=https%3A%2F%2Fsparkui-adv.vercel.app%2Fdocs%2Fhooks%2Fuse-combined-state)
![issue](https://img.shields.io/badge/report%20a%20bug-black?logo=openbugbounty&logoColor=red&link=https%3A%2F%2Fgithub.com%2Fadevinta%2Fspark%2Fissues%2Fnew%3F%26projects%3D4%26template%3Dbug-report.yml%26assignees%3D%26labels%3Dhook%2Cuse-combined-state)
![npm](https://img.shields.io/npm/dt/%40spark-ui/use-combined-state?logo=npm&labelColor=black&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40spark-ui%2Fuse-combined-state)
[![storybook](https://img.shields.io/badge/storybook-black?logo=storybook)](https://sparkui.vercel.app/?path=/docs/hooks-usecombinedstate--docs)
[![documentation](https://img.shields.io/badge/documentation-black?logo=googledocs)](https://sparkui-adv.vercel.app/docs/hooks/useCombinedState)
[![issue](https://img.shields.io/badge/report%20a%20bug-black?logo=openbugbounty&logoColor=red)](https://github.com/adevinta/spark/issues/new?&projects=4&template=bug-report.yml&assignees=&labels=hook,use-combined-state)
[![npm](https://img.shields.io/npm/dt/%40spark-ui/use-combined-state?logo=npm&labelColor=black)](https://www.npmjs.com/package/@spark-ui/use-combined-state)

@@ -12,3 +12,3 @@

![Issues open](https://img.shields.io/github/issues-search/adevinta/spark?query=is%3Aopen%20label%3Ahook%20label%3Ause-combined-state&logo=openbugbounty&logoColor=red&label=issues%20open&color=red&link=https%3A%2F%2Fgithub.com%2Fadevinta%2Fspark%2Fissues%3Fq%3Dis%253Aopen%2Blabel%253Ahook%2Blabel%253Ause-combined-state)
![NPM](https://img.shields.io/npm/l/%40spark-ui%2Fuse-combined-state)
[![Issues open](https://img.shields.io/github/issues-search/adevinta/spark?query=is%3Aopen%20label%3Ahook%20label%3Ause-combined-state&logo=openbugbounty&logoColor=red&label=issues%20open&color=red)](https://github.com/adevinta/spark/issues?q=is%3Aopen+label%3Ahook+label%3Ause-combined-state)
[![NPM](https://img.shields.io/npm/l/%40spark-ui%2Fuse-combined-state)](https://github.com/adevinta/spark/blob/main/packages/hooks/use-combined-state/LICENSE.md)

Sorry, the diff of this file is not supported yet

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