EffectHandler
Manages the execution and update of effects within a ComponentTree.
For Spec Components, this will invoke OnAttached when a component is attached to the ComponentTree and OnDetached when a component is detached from the tree.
For Kotlin components, this will handle dispatching callbacks registered with the useEffect hook.
Functions
Link copied to clipboard
Whether any currently-attached effect recorded a read of any of updatedState.
Link copied to clipboard
inline fun EffectHandler.updateAndRun(context: EffectContext, newEffects: List<Effect>?, onUpdate: () -> Unit)
Link copied to clipboard
Updates the set of effects within the associated ComponentTree.