Module

Solid.Owner

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

Owners: the scopes that dispose reactive computations.

#Owner Source

data Owner

#getOwner Source

getOwner :: Setup Owner

The current owner. Total: Setup code always runs under one.

#runWithOwner Source

runWithOwner :: forall a. Owner -> Setup a -> Effect a

Runs Setup code under a captured owner, e.g. from an async callback. Anything it creates is disposed with that owner.