Run a render effect, reactively, based on the passed args.
Like effect, this is an escape-hatch and can hurt performance.
The main difference with renderEffect is that it enables you to measure changes to the DOM,
if needed, like when implementing line-clamping, or any other feature that requires a full render pass
before taking measurements to then make further adjustments.
When using this, it is important to ensure that visual jitter is minimized.
Run a render effect, reactively, based on the passed args.
Like
effect
, this is an escape-hatch and can hurt performance.The main difference with
renderEffect
is that it enables you to measure changes to the DOM, if needed, like when implementing line-clamping, or any other feature that requires a full render pass before taking measurements to then make further adjustments.When using this, it is important to ensure that visual jitter is minimized.