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

@equinor/fusion

Package Overview
Dependencies
Maintainers
2
Versions
485
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/fusion - npm Package Compare versions

Comparing version 0.1.28 to 0.1.29

11

lib/settings/useCoreSettings.js

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

import { useState, useEffect, useCallback } from "react";
import { useState, useEffect } from "react";
import { useFusionContext, defaultSettings } from "../core/FusionContext";

@@ -6,10 +6,7 @@ export default () => {

const [coreSettings, setCoreSettings] = useState(settings.core.toObject() || defaultSettings);
const setSettings = useCallback((settings) => {
setCoreSettings(settings);
}, []);
useEffect(() => {
settings.core.toObjectAsync().then(setSettings);
return settings.core.on("change", setSettings);
}, []);
settings.core.toObjectAsync().then(setCoreSettings);
return settings.core.on("change", setCoreSettings);
}, [setCoreSettings]);
return coreSettings;
};
{
"name": "@equinor/fusion",
"version": "0.1.28",
"version": "0.1.29",
"description": "Everything a Fusion app needs to communicate with the core",

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