feat(nucleus): call onInitialRender if defined

This commit is contained in:
Miralem Drek
2019-10-08 14:07:49 +02:00
parent e74d51be8c
commit 3220de9e9b

View File

@@ -112,7 +112,9 @@ class Supernova extends React.Component {
this.initial.mount = () => {};
},
rendered: () => {
// this.props.prom();
if (this.props.snOptions && typeof this.props.snOptions.onInitialRender === 'function') {
this.props.snOptions.onInitialRender.call(null);
}
this.initial.rendered = () => {};
},
};