@vobs/runtime 1.8.2 → 1.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1004,7 +1004,8 @@ function createComponent(component, props, source) {
1004
1004
  if (owner.disposed) return;
1005
1005
  const previous = instance.node;
1006
1006
  owner.disposeSince(renderScope);
1007
- const next = owner.run(() => untrack(() => component(props)));
1007
+ const rawNext = owner.run(() => untrack(() => component(props)));
1008
+ const next = isRenderableNode(rawNext) ? rawNext : createComment("vobs:empty");
1008
1009
  const parent = instance.parent;
1009
1010
  if (parent) {
1010
1011
  const anchor = isVobsFragment(previous) ? previous.start : previous;