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

use-effect-x

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-effect-x - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"version": "0.1.1",
"version": "0.1.2",
"license": "MIT",

@@ -4,0 +4,0 @@ "main": "dist/index.js",

@@ -49,11 +49,11 @@ # use-effect-x

useEffectX(
({ changedItem }) => {
({ changedItem: [changeObjcountA, changeObjcountB] }) => {
// Here you have complete access to what changed
console.log('changed Item', changedItem);
console.log('changed Item', changeObjcountA, changeObjcountB);
// your logic if you want to check for count
console.log(
`count ${changedItem[0]?.changed ? 'changed' : 'not changed'} from ${
changedItem[0]?.previous
} to ${changedItem[0]?.next}`
);
// console.log(
// `count ${changedItem[0]?.changed ? 'changed' : 'not changed'} from ${
// changedItem[0]?.previous
// } to ${changedItem[0]?.next}`
// );
},

@@ -60,0 +60,0 @@ [countA, countB]

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