Module
Solid.Action
- Package
- purescript-purs-solid
- Repository
- arazorda/purs-solid
Actions: async mutations as one transaction. Every liftAff is a
suspension point that re-enters the transaction; nothing is committed until
the action finishes. Optimistic values revert when it settles.
#Optimistic Source
data Optimistic t0#createOptimistic Source
createOptimistic :: forall m a. MonadReactive m => a -> m ((Accessor a) /\ (Optimistic a))A value that can be overridden tentatively during an action and reverts
to initial when the action settles.
#createOptimisticWith Source
createOptimisticWith :: forall m a given missing. MonadReactive m => Union given missing (SignalOptions a) => Record given -> a -> m ((Accessor a) /\ (Optimistic a))Takes any subset of SignalOptions.
#createOptimisticFrom Source
createOptimisticFrom :: forall f a. Tracked f => f a -> Setup ((f a) /\ (Optimistic a))An optimistic view of source: tentative writes during an action, then
back to following source.
#createOptimisticFromWith Source
createOptimisticFromWith :: forall f a given missing. Tracked f => Union given missing (MemoOptions a) => Record given -> f a -> Setup ((f a) /\ (Optimistic a))Takes any subset of MemoOptions.
#setOptimistic Source
setOptimistic :: forall m a. MonadOptimistic m => Optimistic a -> a -> m UnitA tentative write: in an Action, or in a router action's onSubmit.
#modifyOptimistic Source
modifyOptimistic :: forall m a. MonadOptimistic m => Optimistic a -> (a -> a) -> m UnitRe-exports from Effect.Aff.Class
Re-exports from Effect.Class
#liftEffect Source
liftEffect :: forall m a. MonadEffect m => Effect a -> m aRe-exports from Solid.Internal.Action
- 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