Module

Solid.Lifecycle

Package
purescript-purs-solid
Repository
arazorda/purs-solid

#onCleanup Source

onCleanup :: Effect Unit -> Setup Unit

Runs when the current owner is disposed or re-runs. Cleanups run in reverse registration order.

#onSettled Source

onSettled :: Effect (Effect Unit) -> Setup Unit

Runs once the current owner's subtree has rendered with no async work pending, in the browser only; the server registers it without running it. The returned Effect Unit runs on disposal.