fix: default to empty props if props is undefined in render

pull/18058/head
paoloricciuti 4 months ago
parent 49511b4a83
commit 62d1ce7822

@ -60,7 +60,7 @@ export function createRenderer(renderer) {
var ctx = /** @type {ComponentContext} */ (component_context);
if (context) ctx.c = context;
branch(() => {
/** @type {Function} */ (Component)(anchor, props);
/** @type {Function} */ (Component)(anchor, props ?? {});
});
pop();
});

Loading…
Cancel
Save