mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2026-05-25 01:00:13 -04:00
BREAKING CHANGE: nucleus and supernova are no longer public packages and are both replaced by stardust
29 lines
531 B
JavaScript
29 lines
531 B
JavaScript
import { useElement, useLayout, useEffect } from '@nebula.js/stardust';
|
|
|
|
import properties from './object-properties';
|
|
import data from './data';
|
|
|
|
import { render, teardown } from './components/root';
|
|
|
|
export default function supernova(/* env */) {
|
|
return {
|
|
qae: {
|
|
properties,
|
|
data,
|
|
},
|
|
component() {
|
|
const el = useElement();
|
|
const layout = useLayout();
|
|
|
|
useEffect(
|
|
() => () => {
|
|
teardown(el);
|
|
},
|
|
[]
|
|
);
|
|
|
|
render(el, { layout });
|
|
},
|
|
};
|
|
}
|