Module

Solid.Root

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

#createRoot Source

createRoot :: forall m a. MonadReactive m => (Effect Unit -> Setup a) -> m a

Runs body in a new owner; the Effect Unit passed to it disposes the root. From Effect the root is detached; from Setup it's disposed with the current owner. The body can't write signals: return the setters and write from Effect.

#RootOptions Source

type RootOptions :: Row Typetype RootOptions = (id :: String, transparent :: Boolean)

#createRootWith Source

createRootWith :: forall m a given missing. MonadReactive m => Union given missing RootOptions => Record given -> (Effect Unit -> Setup a) -> m a

Takes any subset of RootOptions.