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

treble-hook

Package Overview
Dependencies
Maintainers
6
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

treble-hook - npm Package Compare versions

Comparing version 2.0.0-alpha.6 to 2.0.0-alpha.7

8

lib/index.js

@@ -80,4 +80,10 @@ "use strict";

const [stateValue] = contextState;
const isMounted = react_1.useRef(true);
react_1.useEffect(() => {
if (initWithSessionStorage) {
return () => {
isMounted.current = false;
};
}, []);
react_1.useEffect(() => {
if (isMounted.current && initWithSessionStorage) {
sessionStorage.setItem(topicName, JSON.stringify(stateValue));

@@ -84,0 +90,0 @@ }

2

package.json
{
"name": "treble-hook",
"version": "2.0.0-alpha.6",
"version": "2.0.0-alpha.7",
"description": "Get hooked on simple subscribe-and-publish in ReactJS.",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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