Module
Solid.Reactivity
- Package
- purescript-purs-solid
- Repository
- arazorda/purs-solid
Memos, effects and scheduling. Effects have a tracked, pure compute phase
(an Accessor) and an untracked apply phase (a -> Effect ...) whose
cleanup runs before the next apply and on disposal.
#createMemo Source
createMemo :: forall f a. Tracked f => f a -> Setup (f a)Caches a derived accessor: it recomputes only when its dependencies change, and notifies only when the result changes.
#createMemoWith Source
createMemoWith :: forall f a given missing. Tracked f => Union given missing (MemoOptions a) => Record given -> f a -> Setup (f a)Takes any subset of MemoOptions.
#createWritableMemo Source
createWritableMemo :: forall a. Accessor a -> Setup (Signal a)A signal derived from compute that can also be written locally. A write
wins until a dependency of compute changes, which re-derives it.
#createWritableMemoWith Source
createWritableMemoWith :: forall a given missing. Union given missing (MemoOptions a) => Record given -> Accessor a -> Setup (Signal a)Takes any subset of MemoOptions.
#createEffectWith Source
createEffectWith :: forall f a given missing. Tracked f => Union given missing EffectOptions => Record given -> f a -> (a -> Effect (Effect Unit)) -> Setup UnitTakes any subset of EffectOptions.
#Reaction Source
data ReactionA reaction runs its handler once, the next time anything read by the
last track changes.
- Modules
- Solid.
Action - Solid.
Async - Solid.
Component - Solid.
Component. JS - Solid.
Context - Solid.
Control - Solid.
DOM - Solid.
DOM. Aria - Solid.
DOM. AttrValue - Solid.
DOM. HTML - Solid.
DOM. SVG - Solid.
Errors - Solid.
Internal. Action - Solid.
Internal. Equality - Solid.
Internal. Identity - Solid.
Internal. Names - Solid.
Internal. Optimistic - Solid.
Internal. Props - Solid.
Internal. Reply - Solid.
Internal. Serializable - Solid.
Internal. ServerFunction - Solid.
Internal. Setup - Solid.
Internal. Store - Solid.
Internal. Tracked - Solid.
Internal. View - Solid.
JSX - Solid.
Lifecycle - Solid.
Meta - Solid.
Owner - Solid.
Reactivity - Solid.
Root - Solid.
Router - Solid.
Router. Action - Solid.
Router. Path - Solid.
Router. Query - Solid.
Router. Search - Solid.
Setup - Solid.
Signal - Solid.
Start. Middleware - Solid.
Start. RequestEvent - Solid.
Start. Response - Solid.
Start. ServerFunction - Solid.
Start. UseServer - Solid.
Store - Solid.
Testing - Solid.
Utility - Solid.
Web - Solid.
Web. SSR