) {
const el = getRootElement(instance)
if (el) {
- applyFallthroughProps(el, instance.attrs)
+ renderEffect(() => applyFallthroughProps(el, instance.attrs))
}
}
block: Block,
attrs: Record<string, any>,
): void {
- renderEffect(() => {
- isApplyingFallthroughProps = true
- setDynamicProps(block as Element, [attrs])
- isApplyingFallthroughProps = false
- })
+ isApplyingFallthroughProps = true
+ setDynamicProps(block as Element, [attrs])
+ isApplyingFallthroughProps = false
}
/**
if (fallthroughAttrs && instance.hasFallthrough) {
// mark single root
;(child as any).$root = true
- applyFallthroughProps(child, instance.attrs)
+ renderEffect(() => applyFallthroughProps(child, instance.attrs))
}
return resolvedHooks