Skip to content

Commit

Permalink
Return rendered marker with the rendered element when effects are not…
Browse files Browse the repository at this point in the history
… allowed.
  • Loading branch information
Kapelianovych committed Apr 24, 2024
1 parent 10f63b5 commit beeb6be
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions packages/moru/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,17 @@ const render = (
);

if (!options.allowEffects)
return render(
options,
passedContext,
parent,
element(),
position + 1,
isHydrating,
);
return [
marker,
render(
options,
passedContext,
parent,
element(),
position + 1,
isHydrating,
),
];

let previousInstance;

Expand Down

0 comments on commit beeb6be

Please sign in to comment.