@equinor/fusion
Advanced tools
Comparing version 0.1.40 to 0.1.41
import EventEmitter from "../utils/EventEmitter"; | ||
import { useFusionContext } from "../core/FusionContext"; | ||
import { useEffect, useState } from 'react'; | ||
export default class AppContainer extends EventEmitter { | ||
@@ -83,4 +84,8 @@ constructor(apiClients) { | ||
const { app } = useFusionContext(); | ||
const [_, forceUpdate] = useState(); | ||
useEffect(() => { | ||
return app.container.on("change", () => forceUpdate(null)); | ||
}, []); | ||
return app.container.currentApp; | ||
}; | ||
export { registerApp, appContainerFactory, useCurrentApp }; |
{ | ||
"name": "@equinor/fusion", | ||
"version": "0.1.40", | ||
"version": "0.1.41", | ||
"description": "Everything a Fusion app needs to communicate with the core", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114521
2651