new render wrapper - bug fix
This commit is contained in:
parent
44e71ea967
commit
879308d0d7
|
@ -35,7 +35,11 @@ export const loadBudibase = async ({
|
||||||
props = appDefinition.props;
|
props = appDefinition.props;
|
||||||
}
|
}
|
||||||
|
|
||||||
const _app = createApp(componentLibraries, appDefinition, user, uiFunctions);
|
const _app = createApp(
|
||||||
|
componentLibraries,
|
||||||
|
appDefinition,
|
||||||
|
user,
|
||||||
|
uiFunctions || {});
|
||||||
_app.hydrateChildren(
|
_app.hydrateChildren(
|
||||||
[props],
|
[props],
|
||||||
window.document.body);
|
window.document.body);
|
||||||
|
|
|
@ -4,7 +4,10 @@ export const renderComponent = ({
|
||||||
htmlElement, anchor, parentContext,
|
htmlElement, anchor, parentContext,
|
||||||
componentProps}) => {
|
componentProps}) => {
|
||||||
|
|
||||||
const func = uiFunctions[componentProps._id];
|
const func = componentProps._id
|
||||||
|
? uiFunctions[componentProps._id]
|
||||||
|
: undefined;
|
||||||
|
|
||||||
let component;
|
let component;
|
||||||
let componentContext;
|
let componentContext;
|
||||||
const render = (context) => {
|
const render = (context) => {
|
||||||
|
|
Loading…
Reference in New Issue